Skip to content

Require PHP 8.2+, upgrade to PHPUnit 11, and harden CI/CD #2

Require PHP 8.2+, upgrade to PHPUnit 11, and harden CI/CD

Require PHP 8.2+, upgrade to PHPUnit 11, and harden CI/CD #2

Workflow file for this run

---
name: Tests
on:
push:
branches:
- master
pull_request:
concurrency:
group: tests-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
run:
runs-on: "ubuntu-latest"
timeout-minutes: 30
if: ${{ github.actor != 'dependabot[bot]' }}
strategy:
fail-fast: false
matrix:
powerdns-versions: ["42", "43", "44", "45", "46", "47", "48", "49", "50", "51"]
php-versions: ["8.2", "8.3", "8.4", "8.5"]
services:
powerdns:
image: registry.exonet.nl/exonet/powerdns-test:${{ matrix.powerdns-versions}}
ports:
- 8081:8081
steps:
- name: Checkout repository
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- name: Setup PHP
uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # v2
with:
php-version: ${{ matrix.php-versions }}
extensions: json
- name: Install dependencies
uses: ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda # 4.0.0
with:
composer-options: "--prefer-dist"
- name: Run tests
run: ./vendor/bin/phpunit