From b4ffce31b306a4862f820d4d140113322aff1132 Mon Sep 17 00:00:00 2001 From: Nathanael Esayeas Date: Tue, 9 May 2023 11:46:57 -0500 Subject: [PATCH] Update compliance.yml Signed-off-by: Nathanael Esayeas --- .github/workflows/compliance.yml | 39 +++++--------------------------- 1 file changed, 6 insertions(+), 33 deletions(-) diff --git a/.github/workflows/compliance.yml b/.github/workflows/compliance.yml index ab59d231..5a56dcb0 100644 --- a/.github/workflows/compliance.yml +++ b/.github/workflows/compliance.yml @@ -2,45 +2,18 @@ name: Compliance on: pull_request: + push: branches: - - "**" + - "main" - "[0-9]+.[0-9]+.x" - "v[0-9]+" + schedule: - cron: "0 * * * *" # Runs hourly + workflow_dispatch: 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 - 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 }} + compliance: + uses: ghostwriter/compliance/.github/workflows/compliance-reusable.yml@main