Skip to content

Commit

Permalink
github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
asika32764 committed Nov 19, 2023
1 parent ccb4c10 commit 7e32822
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/test-php.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: PHP Test

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
run-tests:
name: PHP ${{ matrix.php-versions }} Test
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php-versions: [
'8.0',
'8.1',
'8.2',
'8.3',
'8.4'
]
include:
- php-versions: '8.4'
experimental: true

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

- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
coverage: none

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

- name: Run tests
run: ./vendor/bin/phpunit

0 comments on commit 7e32822

Please sign in to comment.