From 341fb84d25aa0d3685ae5b6ccfc01655cba66461 Mon Sep 17 00:00:00 2001 From: marc tobias Date: Wed, 12 Jun 2024 00:55:28 +0200 Subject: [PATCH] Add Github Actions to run tests --- .github/workflows/ci.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..045e4f3 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,34 @@ +name: CI Tests + +on: + push: + pull_request: + +jobs: + test: + strategy: + matrix: + # https://www.php.net/supported-versions.php + php-version: ['8.3'] + + name: Level0 tests + + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up PHP ${{ matrix.php-version }} + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php-version }} + coverage: none + + - name: Install dependencies + run: composer install --no-progress --no-suggest --no-interaction + + - name: Run tests + run: | + composer validate + ./vendor/bin/phpunit --display-warnings test/