Skip to content

Add zizmor security analysis + dependabot cooldown (#165) #137

Add zizmor security analysis + dependabot cooldown (#165)

Add zizmor security analysis + dependabot cooldown (#165) #137

name: Continuous Integration
on:
push:
paths-ignore: ["**.md"]
pull_request:
paths-ignore: ["**.md"]
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
tests:
name: CI
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
strategy:
matrix:
php-version:
- "7.2"
- "7.3"
- "7.4"
- "8.0"
- "8.1"
- "8.2"
- "8.3"
- "8.4"
os: [ubuntu-latest]
experimental: [false]
include:
- php-version: "7.2"
os: windows-latest
experimental: false
- php-version: "8.4"
os: windows-latest
experimental: false
- php-version: "8.5"
os: ubuntu-latest
experimental: true
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc # 2.37.1
with:
php-version: "${{ matrix.php-version }}"
coverage: none
- uses: ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda # 4.0.0
with:
dependency-versions: highest
- name: Run tests
if: ${{ !matrix.experimental }}
run: vendor/bin/phpunit
# Show deprecations on latest PHP
- name: Run tests (experimental)
if: ${{ matrix.experimental }}
run: vendor/bin/phpunit --display-deprecations