Skip to content

Commit

Permalink
Merge pull request #17 from x-graphql/add-ci
Browse files Browse the repository at this point in the history
ci: add workflow
  • Loading branch information
vuongxuongminh authored Mar 18, 2024
2 parents b3a51c7 + 0c89bc5 commit bdae623
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Unit Tests

on:
push:
branches:
- main
pull_request: ~

jobs:
unit_tests:
strategy:
matrix:
php:
- '8.2'
- '8.3'

runs-on: ubuntu-latest

name: "PHP ${{ matrix.php }} tests"

steps:
- uses: actions/checkout@v4

- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: pcov

- uses: "ramsey/composer-install@v2"

- run: ./vendor/bin/phpunit

- uses: codecov/codecov-action@v2
with:
name: "phpunit-php${{ matrix.php }}"
flags: phpunit
fail_ci_if_error: true
continue-on-error: true

0 comments on commit bdae623

Please sign in to comment.