V11 2 #4062
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- '**' | |
push: | |
branches: | |
- main | |
- restructure | |
- v11 | |
jobs: | |
filter_jobs: | |
name: Filter jobs | |
runs-on: ubuntu-latest | |
outputs: | |
jsChanged: ${{ steps.filter.outputs.jsChanged }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dorny/paths-filter@v3 | |
id: filter | |
with: | |
# Should be kept in sync with the filter in the PR Reporter workflow | |
filters: | | |
jsChanged: '**/src/**/*.js' | |
compressed_size: | |
name: Compressed Size | |
needs: filter_jobs | |
if: ${{ needs.filter_jobs.outputs.jsChanged == 'true' }} | |
uses: ./.github/workflows/size.yml | |
build_test: | |
name: Build & Test | |
needs: filter_jobs | |
uses: ./.github/workflows/build-test.yml | |
benchmarks: | |
name: Benchmarks | |
needs: build_test | |
if: ${{ needs.filter_jobs.outputs.jsChanged == 'true' }} | |
uses: ./.github/workflows/benchmarks.yml |