Skip to content

Commit

Permalink
NGSTACK-816 add testing workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
petarjakopec committed Aug 21, 2024
1 parent 41ae780 commit 6ec3713
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Tests

on:
push:
branches:
- 'master'
- '[0-9].[0-9]+'
pull_request: ~

jobs:
tests:
name: ${{ matrix.php }} / ${{ matrix.phpunit }}
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
php: ['8.1']
phpunit: ['phpunit.xml']

steps:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none

- run: composer --version
- run: composer validate --strict

- run: composer update --prefer-dist

- run: vendor/bin/phpunit -c ${{ matrix.phpunit }} --colors=always

0 comments on commit 6ec3713

Please sign in to comment.