Skip to content

ci: skip tests if unaffected TASK-1316 #4

ci: skip tests if unaffected TASK-1316

ci: skip tests if unaffected TASK-1316 #4

Workflow file for this run

name: ci
on:
push:
branches: [ main ]
pull_request:
jobs:
changes:
runs-on: ubuntu-latest
permissions: { pull-requests: read }
steps:
- uses: actions/checkout@v4
- id: filter
uses: dorny/paths-filter@v3
with: { filters: .github/filters.yml }
outputs:
npm-test: ${{ steps.filter.outputs.npm-test }}
pytest: ${{ steps.filter.outputs.pytest }}
darker: ${{ steps.filter.outputs.darker }}
unknown: ${{ steps.filter.outputs.unknown }}
npm-test:
needs: changes
uses: ./.github/workflows/npm-test.yml
if: |
needs.changes.outputs.npm-test == 'true' ||
needs.changes.outputs.unknown == 'true' ||
github.event_name == 'push'
pytest:
needs: changes
uses: ./.github/workflows/pytest.yml
if: |
needs.changes.outputs.pytest == 'true' ||
needs.changes.outputs.unknown == 'true' ||
github.event_name == 'push'
darker:
needs: changes
uses: ./.github/workflows/darker.yml
if: |
needs.changes.outputs.darker == 'true' &&
github.event_name == 'pull_request'