Skip to content

Commit 9927082

Browse files
improve CI by auto generating workflows
1 parent d8d224f commit 9927082

5 files changed

Lines changed: 51 additions & 111 deletions

File tree

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: "Continuous Integration"
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- "refs/pull/*"
7+
- "master"
8+
push:
9+
branches:
10+
- "refs/pull/*"
11+
- "master"
12+
13+
jobs:
14+
matrix:
15+
name: Generate job matrix
16+
runs-on: ubuntu-latest
17+
outputs:
18+
matrix: ${{ steps.matrix.outputs.matrix }}
19+
steps:
20+
- name: Gather CI configuration
21+
id: matrix
22+
uses: laminas/laminas-ci-matrix-action@v1
23+
24+
qa:
25+
name: QA Checks
26+
needs: [matrix]
27+
runs-on: ${{ matrix.operatingSystem }}
28+
strategy:
29+
fail-fast: false
30+
matrix: ${{ fromJSON(needs.matrix.outputs.matrix) }}
31+
steps:
32+
- name: ${{ matrix.name }}
33+
uses: laminas/laminas-continuous-integration-action@v1
34+
with:
35+
job: ${{ matrix.job }}

.github/workflows/cs.yaml

Lines changed: 0 additions & 36 deletions
This file was deleted.

.github/workflows/phpstan.yaml

Lines changed: 0 additions & 36 deletions
This file was deleted.

.github/workflows/tests.yaml

Lines changed: 0 additions & 39 deletions
This file was deleted.

.laminas-ci.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"additional_checks": [
3+
{
4+
"name": "PHPStan",
5+
"job": {
6+
"command": "./vendor/bin/phpstan analyse",
7+
"php": "@lowest"
8+
}
9+
}
10+
],
11+
"exclude": [
12+
{
13+
"name": "README Linting [8.1, latest]"
14+
}
15+
]
16+
}

0 commit comments

Comments
 (0)