这是indexloc提供的服务,不要输入任何密码
Skip to content

Second try with benchmarking #751

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 16, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions .github/workflows/large-monorepo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Large Repo Benchmark

on:
schedule:
cron: '0 0 * * *'

jobs:
build:
name: Run Benchmarks
timeout-minutes: 40
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]

steps:
- name: Check out code
uses: actions/checkout@v2
with:
fetch-depth: 2

- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: 1.17.6
id: go

- name: Build
run: cd cli && make turbo

- name: Setup Node.js environment
uses: actions/setup-node@v2

- name: Install dependencies
run: cd benchmark && yarn

- name: Run benchmarks
run: cd benchmark && yarn benchmark

- name: Store Benchmark Result
uses: benchmark-action/github-action-benchmark@v1
with:
name: "${{ runner.os }} Benchmark"
# What benchmark tool the output is formatted as
tool: "customSmallerIsBetter"
output-file-path: ./benchmark/benchmarks.json
benchmark-data-dir-path: benchmarks/large-repo/${{ runner.os }}
auto-push: true
# GitHub API token to make a commit
github-token: ${{ secrets.GITHUB_TOKEN }}