Skip to content

Commit

Permalink
Add github workflow for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
stnguyen90 committed Mar 12, 2024
1 parent 6c6a682 commit 43130c3
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Tests

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on:
push:
pull_request:

jobs:
run-tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php-version: ['8.0', nightly]

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

- name: Setup PHP with PECL extension
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: curl

- name: Install dependencies
run: composer install --ignore-platform-reqs

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

- name: Run Psalm analysis
run: vendor/bin/psalm --show-info=true

0 comments on commit 43130c3

Please sign in to comment.