-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (37 loc) · 1.14 KB
/
Copy pathci.yml
File metadata and controls
43 lines (37 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# CI — XOOPS module DevOps baseline.
# Profile: XoopsCore27 / PHP 8.2+
# xoops-overlay:profile=core27
#
# Self-contained quality gate: runs `composer qa` (CS-Fixer check, PHPStan, Rector dry-run,
# PHPUnit) on the supported PHP matrix. When the org hosts a shared reusable workflow you can
# replace this whole job with:
# uses: XoopsModules27x/.github/.github/workflows/module-ci.yml@v1
name: CI
on:
push:
branches: [master, main]
pull_request:
permissions:
contents: read
jobs:
qa:
name: QA (PHP ${{ matrix.php }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: ['8.2', '8.3', '8.4']
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
persist-credentials: false
- name: Setup PHP
uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # v2
with:
php-version: ${{ matrix.php }}
coverage: none
tools: composer:v2
- name: Install dependencies
run: composer install --no-interaction --no-progress
- name: Quality gate
run: composer qa