Skip to content

lib: replace benchmarkjs with tinybench (#75) #10

lib: replace benchmarkjs with tinybench (#75)

lib: replace benchmarkjs with tinybench (#75) #10

Workflow file for this run

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

Check failure on line 37 in .github/workflows/watch_bench.yml

View workflow run for this annotation

GitHub Actions / Watch Benchmarks

Invalid workflow file

The workflow is not valid. .github/workflows/watch_bench.yml (Line: 37, Col: 5): Required property is missing: runs-on
if: needs.changes.outputs.files != '[]'
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 }}