fix: adjust failing benchmarks #12
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: 'Watch Benchmarks' | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
paths: | |
- 'bench/**' | |
permissions: | |
issues: write | |
jobs: | |
changes: | |
runs-on: ubuntu-latest | |
outputs: | |
files: ${{ steps.changes.outputs.benchmarks_files }} | |
changes: ${{ steps.changes.outputs.benchmarks }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: 'Detect File Changes' | |
uses: dorny/paths-filter@v2 | |
id: changes | |
with: | |
list-files: json | |
base: ${{ github.ref }} | |
working-directory: bench | |
filters: | | |
benchmarks: | |
- added|modified: 'bench/*.js' | |
benchmark: | |
needs: changes | |
if: needs.changes.outputs.files != '[]' | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: true | |
matrix: | |
# Parse JSON array containing names of all filters matching any of changed files | |
# e.g. ['add-property.js', 'array-append.js'] if both bench files contains changes | |
bench-file: ${{ fromJSON(needs.changes.outputs.files) }} | |
steps: | |
- name: Running ${{ matrix.bench-file }} | |
uses: ./.github/workflows/bench.yml | |
with: | |
bench-file: ${{ matrix.bench-file }} |