From 72441d6bf3ff4ff5461b7716fc208f6c5be7d4a6 Mon Sep 17 00:00:00 2001 From: Ilyas Salikhov Date: Tue, 18 Jun 2024 12:24:55 +0300 Subject: [PATCH] Run phpunit tests in CI --- .github/workflows/ci.yml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 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..ba3f1c8 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,40 @@ +name: CI + +on: + pull_request: + push: + branches: + - "*.*" + - master + +jobs: + tests: + runs-on: ubuntu-20.04 + strategy: + fail-fast: false + matrix: + php-version: + - '8.1' + symfony-version: + - '5.4.*' + coverage: [ 'none' ] + steps: + - name: "Checkout" + uses: "actions/checkout@v2" + + - name: "Install PHP" + uses: "shivammathur/setup-php@v2" + with: + tools: flex + php-version: "${{ matrix.php-version }}" + coverage: "${{ matrix.coverage }}" + + - name: "Install dependencies" + uses: ramsey/composer-install@v2 + env: + SYMFONY_REQUIRE: "${{ matrix.symfony-version }}" + + - name: "Run tests" + run: make phpunit + env: + PHP_IMAGE_TAG: "${{ matrix.php-version }}"