Skip to content

Commit

Permalink
A few workflow improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
otsch committed Oct 21, 2023
1 parent bc7b5b1 commit 8eb31e6
Showing 1 changed file with 6 additions and 17 deletions.
23 changes: 6 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,13 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'

- name: Check PHP Version
run: php -v
php-version: '8.1'
coverage: none

- name: Install dependencies
run: composer install --prefer-dist --no-progress
Expand All @@ -26,30 +24,24 @@ jobs:
run: composer cs

tests8x:
name: Unit tests
name: Tests
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['8.0', '8.1', '8.2']

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}

- name: Check PHP Version
run: php -v

- name: Install dependencies
run: composer install --prefer-dist --no-progress

- name: Install query-string package
run: composer require crwlr/query-string

- name: Run tests
run: composer test

Expand All @@ -59,16 +51,13 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'

- name: Check PHP Version
run: php -v

- name: Install dependencies
run: composer install --prefer-dist --no-progress

Expand Down

0 comments on commit 8eb31e6

Please sign in to comment.