Skip to content

Commit

Permalink
update setup & test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tanhongit committed Nov 3, 2023
1 parent 04e661d commit 106fffb
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/setup_test.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,28 @@
name: Setup and test
name: Setup & test

on: [ push, pull_request ]

jobs:
tests:
name: Composer setup and tests
runs-on: ubuntu-latest
name: Composer P${{ matrix.php }} - ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest ]
php: [ '8.1', '8.2' ]
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
php-version: ${{ matrix.php }}

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

- name: Install dependencies
run: |
composer install --no-interaction --no-progress --no-suggest
- name: Run tests
run: |
composer validate --strict

0 comments on commit 106fffb

Please sign in to comment.