Skip to content

Commit

Permalink
upgrade and improve CI jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
deminy committed Dec 8, 2023
1 parent 9ba575a commit 6b4c499
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/coding_style_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Run Coding Style Checks
run: docker run --rm -v "$(pwd):/project" -w /project -i jakzal/phpqa:php8.2-alpine php-cs-fixer fix --dry-run
run: docker run -q --rm -v "$(pwd):/project" -w /project -i jakzal/phpqa:php8.2-alpine php-cs-fixer fix --dry-run
7 changes: 3 additions & 4 deletions .github/workflows/syntax_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,13 @@ jobs:
strategy:
fail-fast: true
matrix:
php: ["8.0", "8.1", "8.2"]
php: ["8.0", "8.1", "8.2", "8.3"]

name: Syntax Checks Under PHP ${{ matrix.php }}

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Run Syntax Checks
run: |
docker run --rm -v "$(pwd):/project" -w /project -i jakzal/phpqa:php${{ matrix.php }} phplint
run: docker run -q --rm -v "$(pwd):/project" -w /project -i jakzal/phpqa:php${{ matrix.php }} phplint
4 changes: 2 additions & 2 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Services
run: |
Expand All @@ -23,7 +23,7 @@ jobs:
docker ps -a
docker-compose exec -T app php -v
docker-compose exec -T app php --ri swoole
docker-compose exec -T app composer install -n
docker-compose exec -T app composer install -n --no-progress
- name: Run Unit Tests
run: docker-compose exec -T app composer test
Expand Down

0 comments on commit 6b4c499

Please sign in to comment.