Skip to content

Commit

Permalink
Create compliance-reusable.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostwriter committed May 9, 2023
1 parent b9b5866 commit df0575c
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions .github/workflows/compliance-reusable.yml
@@ -0,0 +1,61 @@
name: Compliance

on:
pull_request:
push:
branches:
- "main"
- "[0-9]+.[0-9]+.x"
- "v[0-9]+"
schedule:
- cron: "0 * * * *" # Runs hourly
workflow_dispatch:
workflow_call:
secrets:
GITHUB_TOKEN:
required: true
INFECTION_DASHBOARD_API_KEY:
required: false
STRYKER_DASHBOARD_API_KEY:
required: false
CODECOV_TOKEN:
required: false

jobs:
matrix:
name: Generate job matrix
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.matrix.outputs.matrix }}
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Determine CI Jobs
id: matrix
uses: ghostwriter/compliance@v1
with:
command: matrix
qa:
name: ${{ matrix.name }} on PHP ${{ matrix.php }} with ${{ matrix.dependency }} dependencies
needs: [matrix]
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
matrix: ${{ fromJSON(needs.matrix.outputs.matrix) }}
steps:
- name: ${{ matrix.name }} on PHP ${{ matrix.php }}
uses: ghostwriter/laminas-continuous-integration-action@temp
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
INFECTION_DASHBOARD_API_KEY: ${{ secrets.INFECTION_DASHBOARD_API_KEY }}
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}
with:
job: '{"php":"${{ matrix.php }}","dependencies":"${{ matrix.dependency }}","extensions":${{ toJSON(matrix.extensions) }},"ini":[],"command":"${{ matrix.command }}"}'
# - name: QA Check ${{ matrix.name }} on PHP ${{ matrix.php }}
# uses: ghostwriter/compliance@qa/test-workflow
# with:
# command: check
# job: ${{ matrix.command }}

0 comments on commit df0575c

Please sign in to comment.