Skip to content

Benchmark

Benchmark #3

Workflow file for this run

name: Benchmark
on:
push:
branches: [ main ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
name: Benchmark
steps:
- name: checkout
uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Cache yarn dependencies
uses: actions/cache@v3
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Run Benchmarks
run: yarn benchmark:fast
- name: Upload a Build Artifact
uses: actions/upload-artifact@v3.1.3
with:
name: logs
path: logs/
- name: Download a Build Artifact
uses: actions/download-artifact@v2.1.1
with:
name: logs
path: ~/logs/
- name: 'Echo download path'
run: echo ${{steps.download.outputs.download-path}}