Skip to content

Commit

Permalink
Support for PHP 8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
zingimmick committed Nov 18, 2021
1 parent c1f267f commit a18d7e9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 72 deletions.
30 changes: 4 additions & 26 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: lint
name: Lint

on:
pull_request:
Expand All @@ -7,28 +7,6 @@ on:
- master

jobs:
ecs:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: [7.2, 7.3, 7.4, 8.0]

name: PHP ${{ matrix.php }}

steps:
- name: Checkout code
uses: actions/[email protected]

- name: Setup PHP
uses: shivammathur/[email protected]
with:
php-version: ${{ matrix.php }}

- name: Install dependencies
uses: ramsey/composer-install@v1
with:
dependency-versions: "highest"

- name: Execute code standard tests
run: composer run-script lint
lint:
name: Lint
uses: zingimmick/.github/.github/workflows/lint.yml@main
52 changes: 6 additions & 46 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: tests
name: Tests

on:
pull_request:
Expand All @@ -10,48 +10,8 @@ on:

jobs:
tests:

runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: [7.2, 7.3, 7.4, 8.0]
stability: [lowest, highest]

name: PHP ${{ matrix.php }} - ${{ matrix.stability }}

steps:
- name: Checkout code
uses: actions/[email protected]

- name: Setup PHP
uses: shivammathur/[email protected]
with:
php-version: ${{ matrix.php }}
coverage: xdebug

- name: Setup problem matchers for PHPUnit
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"

- name: Install dependencies
uses: ramsey/composer-install@v1
with:
dependency-versions: ${{ matrix.stability }}

- name: Execute tests
run: composer run-script test:phpunit -- --coverage-clover coverage.xml

- name: Upload coverage to Codecov
uses: codecov/[email protected]
continue-on-error: true
with:
token: ${{ secrets.CODECOV_TOKEN }}

- name: Upload coverage to Code Climate
uses: paambaati/[email protected]
continue-on-error: true
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageCommand: ls
coverageLocations: ${{github.workspace}}/coverage.xml:clover
name: Tests
uses: zingimmick/.github/.github/workflows/tests-laravel.yml@main
secrets:
codecov-token: ${{ secrets.CODECOV_TOKEN }}
cc-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}

0 comments on commit a18d7e9

Please sign in to comment.