Benchmarks #1679
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: Benchmarks | |
on: | |
workflow_dispatch: | |
# pull_request: | |
schedule: | |
# * is a special character in YAML so you have to quote this string | |
- cron: '0 0 * * 1' | |
jobs: | |
benchmarks: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [ 18.x ] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies | |
run: | | |
yarn install --network-timeout 500000 | |
cd benchmarks | |
yarn install --network-timeout 500000 | |
- name: run benchmarks | |
run: yarn benchmarks | |
# - name: commit and push updated results | |
# uses: github-actions-x/commit@v2.9 | |
# if: github.event_name != 'pull_request' && contains(' | |
# refs/heads/production | |
# refs/heads/alpha | |
# refs/heads/beta | |
# refs/heads/rc | |
# ', github.ref) | |
# with: | |
# github-token: ${{ secrets.GITHUB_TOKEN }} | |
# push-branch: 'production' | |
# commit-message: 'chore: update benchmark results [skip]' | |
# force-add: 'true' | |
# files: tools/benchmarks/benchmark-results.json tools/benchmarks/README.md | |
# name: Github Actions | |
# email: <> | |
# - uses: actions/github-script@v4 | |
# if: github.event_name == 'pull_request' && !github.event.pull_request.head.repo.fork && github.actor != 'dependabot[bot]' | |
# with: | |
# github-token: ${{secrets.GITHUB_TOKEN}} | |
# script: | | |
# context.issue.number && github.issues.createComment({ | |
# issue_number: context.issue.number, | |
# owner: context.repo.owner, | |
# repo: context.repo.repo, | |
# body: require('fs').readFileSync('./benchmarks/ISSUE_COMMENT.md', {encoding: 'utf8'}) | |
# }) | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: benchmarks | |
path: | | |
tools/benchmarks/dist |