From 6165a2ef85e2755f7ffedda2c3c7ccc31ab99ab0 Mon Sep 17 00:00:00 2001 From: Krzysztof Grzelak Date: Mon, 1 Jul 2024 01:43:39 +0200 Subject: [PATCH 1/2] phpunit github action --- .github/workflows/run-tests.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/run-tests.yml diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml new file mode 100644 index 0000000..8940c95 --- /dev/null +++ b/.github/workflows/run-tests.yml @@ -0,0 +1,22 @@ +name: run-tests + +on: [push, pull_request] + +jobs: + run-tests: + runs-on: ubuntu24.04 + steps: + - uses: actions/checkout@v4 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: '8.2' + extensions: curl, zip, mbstring + coverage: none + + - name: Install dependencies + run: composer install --no-progress --no-suggest + + - name: Run PHPUnit + run: ./vendor/bin/phpunit --testdox --no-progress From 33ebe1983876c77ad986057422004287876ad250 Mon Sep 17 00:00:00 2001 From: Krzysztof Grzelak Date: Mon, 1 Jul 2024 01:50:02 +0200 Subject: [PATCH 2/2] actions ubuntu version change --- .github/workflows/phpstan.yaml | 2 +- .github/workflows/run-tests.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/phpstan.yaml b/.github/workflows/phpstan.yaml index f142fec..2ff8cde 100644 --- a/.github/workflows/phpstan.yaml +++ b/.github/workflows/phpstan.yaml @@ -13,7 +13,7 @@ on: jobs: phpstan: name: phpstan - runs-on: ubuntu-24.04 + runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 8940c95..b59fc77 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -4,7 +4,7 @@ on: [push, pull_request] jobs: run-tests: - runs-on: ubuntu24.04 + runs-on: ubuntu-latest steps: - uses: actions/checkout@v4