Skip to content

Commit fe70e4e

Browse files
committed
NGSTACK-842 configure github actions
1 parent 21f37c6 commit fe70e4e

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/tests.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- 'master'
7+
- '[0-9].[0-9]+'
8+
pull_request: ~
9+
10+
jobs:
11+
tests:
12+
name: ${{ matrix.php }} / ${{ matrix.phpunit }}
13+
runs-on: ubuntu-latest
14+
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
php: ['8.1']
19+
phpunit: ['phpunit.xml', 'phpunit-integration-legacy.xml']
20+
21+
steps:
22+
- uses: actions/checkout@v2
23+
- uses: shivammathur/setup-php@v2
24+
with:
25+
php-version: ${{ matrix.php }}
26+
coverage: none
27+
28+
- run: composer --version
29+
- run: composer validate --strict
30+
31+
- run: composer update --prefer-dist
32+
33+
- run: vendor/bin/phpunit -c ${{ matrix.phpunit }} --colors=always

0 commit comments

Comments
 (0)