diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index f6b4573076..3a0a435ca7 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -2,14 +2,6 @@ name: Integration tests on: pull_request: - paths: - - '.github/workflows/integration.yml' - - 'appinfo/**' - - 'lib/**' - - 'templates/**' - - 'tests/**' - - 'composer.json' - - 'composer.lock' push: branches: - main @@ -24,9 +16,36 @@ env: APP_NAME: deck jobs: + changes: + runs-on: ubuntu-latest-low + permissions: + contents: read + pull-requests: read + + outputs: + src: ${{ steps.changes.outputs.src}} + + steps: + - uses: dorny/paths-filter@ceb8a2b8f2d89434be7ff52d3de7ec3738c5cc9d # v4.0.3 + id: changes + continue-on-error: true + with: + filters: | + src: + - '.github/workflows/integration.yml' + - 'appinfo/**' + - 'lib/**' + - 'templates/**' + - 'tests/**' + - 'composer.json' + - 'composer.lock' + integration: runs-on: ubuntu-latest + needs: changes + if: needs.changes.outputs.src != 'false' + strategy: fail-fast: false matrix: @@ -168,3 +187,17 @@ jobs: body: comment }) } + + summary: + permissions: + contents: none + runs-on: ubuntu-latest-low + needs: [changes, integration] + + if: always() + + name: integration-summary + + steps: + - name: Summary status + run: if ${{ needs.changes.outputs.src != 'false' && needs.integration.result != 'success' }}; then exit 1; fi