Skip to content

Commit

Permalink
Added GHA testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
smuuf committed Apr 25, 2022
1 parent ddef191 commit 4ccd068
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: PHP tests

on: [push]

jobs:
Tests:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['7.4', '8.0', '8.1', 'latest']
fail-fast: false
steps:
- uses: actions/checkout@v1
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
- name: Install dependencies
run: |
composer install --optimize-autoloader
chmod +x ./bin/
- name: Run tests
run: ./bin/tests
- name: Run static analysis
continue-on-error: true
run: ./bin/phpstan

0 comments on commit 4ccd068

Please sign in to comment.