From d2b577b2b1008e9a407b08d34f671d2101d885a2 Mon Sep 17 00:00:00 2001 From: juliusstoerrle <25788444+juliusstoerrle@users.noreply.github.com> Date: Tue, 16 Jul 2024 07:42:55 +0200 Subject: [PATCH] Adds GH Action for PestPHP --- .github/workflows/continuous-integration.yml | 26 ++++++++++++++++++++ webservice/composer.json | 2 +- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/continuous-integration.yml diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml new file mode 100644 index 0000000..0868ca8 --- /dev/null +++ b/.github/workflows/continuous-integration.yml @@ -0,0 +1,26 @@ +name: Continuous Integration + +on: ['push', 'pull_request'] + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: 8.3 + tools: composer:v2 + coverage: xdebug + + - name: Install Dependencies + working-directory: webservice + run: composer install --no-interaction --prefer-dist --optimize-autoloader + + - name: Tests + working-directory: webservice + run: ./vendor/bin/pest \ No newline at end of file diff --git a/webservice/composer.json b/webservice/composer.json index 20c321e..71914fc 100644 --- a/webservice/composer.json +++ b/webservice/composer.json @@ -4,7 +4,7 @@ "minimum-stability": "stable", "prefer-stable": true, "require": { - "php": ">=8.2", + "php": ">=8.3", "ext-ctype": "*", "ext-iconv": "*", "doctrine/dbal": "^3",