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 new file mode 100644 index 0000000..b59fc77 --- /dev/null +++ b/.github/workflows/run-tests.yml @@ -0,0 +1,22 @@ +name: run-tests + +on: [push, pull_request] + +jobs: + run-tests: + runs-on: ubuntu-latest + 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