From 29d618fdb6e56a2171721c04d4c73e53deff0663 Mon Sep 17 00:00:00 2001 From: Michelle Fich Date: Thu, 9 Jan 2025 13:30:14 +0100 Subject: [PATCH] Update to PHP 8.4 #KDS-615 (#3) --- .github/workflows/test.yml | 28 ++++++++++++++++++++++++++++ composer.json | 3 +++ 2 files changed, 31 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..36e2a22 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,28 @@ +name: Codeception tests + +on: [push] + +jobs: + build: + name: ${{matrix.operating-system}}, PHP ${{ matrix.php }} + + runs-on: ${{ matrix.operating-system }} + + strategy: + matrix: + operating-system: [ ubuntu-latest, ubuntu-20.04 ] + php: [ '8.0', '8.1', '8.4' ] + + steps: + - uses: actions/checkout@master + + - name: Setup PHP Action + uses: shivammathur/setup-php@master + with: + php-version: ${{ matrix.php }} + + - name: Install dependencies + run: composer install + + - name: Run tests + run: composer run test diff --git a/composer.json b/composer.json index 671b990..900b08f 100644 --- a/composer.json +++ b/composer.json @@ -27,5 +27,8 @@ "psr-4": { "Kodus\\Test\\Unit\\": "tests/unit/" } + }, + "scripts": { + "test": "codecept run" } }