diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index ec71cd19b6..a21aedd455 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: @@ -173,7 +192,7 @@ jobs: permissions: contents: none runs-on: ubuntu-latest-low - needs: [integration] + needs: [changes, integration] if: always() @@ -181,4 +200,4 @@ jobs: steps: - name: Summary status - run: if ${{ needs.integration.result != 'success' }}; then exit 1; fi + run: if ${{ needs.changes.outputs.src != 'false' && needs.integration.result != 'success' }}; then exit 1; fi