From 6ec37137f86c1ba7dd2faacce5ec7ff322d738fa Mon Sep 17 00:00:00 2001 From: Petar Jakopec Date: Wed, 21 Aug 2024 15:56:38 +0200 Subject: [PATCH] NGSTACK-816 add testing workflow --- .github/workflows/tests.yaml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/tests.yaml diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml new file mode 100644 index 0000000..83439ef --- /dev/null +++ b/.github/workflows/tests.yaml @@ -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