Skip to content

Commit

Permalink
improve CI by auto generating workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaume-sainthillier committed Sep 28, 2024
1 parent 8c5bc24 commit 1c3108d
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 111 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: "Continuous Integration"

on:
pull_request:
push:
branches:
- "refs/pull/*"
- "master"

jobs:
matrix:
name: Generate job matrix
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.matrix.outputs.matrix }}
steps:
- name: Gather CI configuration
id: matrix
uses: laminas/laminas-ci-matrix-action@v1

qa:
name: QA Checks
needs: [matrix]
runs-on: ${{ matrix.operatingSystem }}
strategy:
fail-fast: false
matrix: ${{ fromJSON(needs.matrix.outputs.matrix) }}
steps:
- name: ${{ matrix.name }}
uses: laminas/laminas-continuous-integration-action@v1
with:
job: ${{ matrix.job }}
36 changes: 0 additions & 36 deletions .github/workflows/cs.yaml

This file was deleted.

36 changes: 0 additions & 36 deletions .github/workflows/phpstan.yaml

This file was deleted.

39 changes: 0 additions & 39 deletions .github/workflows/tests.yaml

This file was deleted.

16 changes: 16 additions & 0 deletions .laminas-ci.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"additional_checks": [
{
"name": "PHPStan",
"job": {
"command": "./vendor/bin/phpstan analyse",
"php": "@lowest"
}
}
],
"exclude": [
{
"name": "README Linting [8.1, locked]"
}
]
}

0 comments on commit 1c3108d

Please sign in to comment.