Format tests

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
John Molakvoæ (skjnldsv) 2021-06-03 08:37:15 +02:00
parent 7f47c90f37
commit 9e68804049
No known key found for this signature in database
GPG Key ID: 60C25B8C072916CF
2 changed files with 23 additions and 9 deletions

View File

@ -3,29 +3,35 @@ on: pull_request
jobs:
php-linters:
name: php${{ matrix.php-versions }} lint
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['7.3', '7.4', '8.0']
name: php${{ matrix.php-versions }} lint
steps:
- name: Checkout
uses: actions/checkout@master
- name: Set up php${{ matrix.php-versions }}
uses: shivammathur/setup-php@master
with:
php-version: ${{ matrix.php-versions }}
extensions: ctype,curl,dom,fileinfo,gd,iconv,intl,json,mbstring,openssl,pdo_sqlite,posix,sqlite,xml,zip
coverage: none
- name: Lint
run: composer run lint
php-cs-fixer:
name: php-cs check
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- name: Set up php
uses: shivammathur/setup-php@master
with:
@ -33,8 +39,10 @@ jobs:
extensions: ctype,curl,dom,fileinfo,gd,iconv,intl,json,mbstring,openssl,pdo_sqlite,posix,sqlite,xml,zip
coverage: none
tools: cs2pr
- name: Install dependencies
run: composer i
- name: Run coding standards check
run: |
composer run cs:check -- --format=checkstyle | cs2pr
@ -42,13 +50,13 @@ jobs:
shell: bash
node:
name: eslint node${{ matrix.node-version }}
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
name: eslint node${{ matrix.node-version }}
steps:
- uses: actions/checkout@v2

View File

@ -13,14 +13,17 @@ env:
jobs:
phpunit-nodb:
runs-on: ubuntu-20.04
strategy:
matrix:
php-versions: [ '7.3', '7.4', '8.0' ]
php-versions: ["7.3", "7.4", "8.0"]
steps:
- name: Checkout server
uses: actions/checkout@v2
with:
submodules: true
- name: Set up php ${{ matrix.php-versions }}
uses: shivammathur/setup-php@v2
with:
@ -28,6 +31,7 @@ jobs:
extensions: ${{ env.php-extensions }}
tools: phpunit:9.5.4
coverage: none
- name: PHPUnit
env:
NOCOVERAGE: true
@ -47,14 +51,17 @@ jobs:
phpunit-sqlite:
runs-on: ubuntu-20.04
strategy:
matrix:
php-versions: [ '7.3', '7.4', '8.0' ]
php-versions: ["7.3", "7.4", "8.0"]
steps:
- name: Checkout server
uses: actions/checkout@v2
with:
submodules: true
- name: Set up php ${{ matrix.php-versions }}
uses: shivammathur/setup-php@v2
with:
@ -62,6 +69,7 @@ jobs:
extensions: ${{ env.php-extensions }}
tools: phpunit:9.5.4
coverage: none
- name: PHPUnit
env:
NOCOVERAGE: true
@ -69,14 +77,12 @@ jobs:
phpunit-oci8:
runs-on: ubuntu-20.04
needs: phpunit-sqlite
# oci takes more time
needs: [phpunit-nodb, phpunit-sqlite]
strategy:
matrix:
php-versions: [ '7.4' ]
databases: [ 'oci' ]
name: php${{ matrix.php-versions }}-${{ matrix.databases }}
php-versions: ["7.4"]
services:
oracle: