Skip to content

Commit

Permalink
ci: fix test (#20)
Browse files Browse the repository at this point in the history
* Update test.yml

* Update test.yml
  • Loading branch information
mkohei authored May 30, 2022
1 parent b13e3e4 commit 1415f45
Showing 1 changed file with 25 additions and 6 deletions.
31 changes: 25 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,31 @@
name: test
name: tests

on: ['push']
on: push

jobs:
pest:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: ['8.0', '8.1']

name: PHP ${{ matrix.php }}

steps:
- uses: actions/[email protected]
- uses: php-actions/composer@v5
- uses: NWBY/[email protected]
- name: Checkout code
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip
tools: composer:v2
coverage: none

- name: Install dependencies
run: composer update --prefer-dist --no-interaction --no-progress

- name: Execute tests
run: vendor/bin/pest --verbose

0 comments on commit 1415f45

Please sign in to comment.