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

View File

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