-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(ci): seperate regression tests workflow
- Loading branch information
1 parent
32c2be1
commit 26a3e5d
Showing
2 changed files
with
39 additions
and
23 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
on: | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- "**.go" | ||
- "go.mod" | ||
pull_request: | ||
branches: | ||
- "**" | ||
|
||
name: regression | ||
jobs: | ||
regression: | ||
strategy: | ||
matrix: | ||
phase: [initialize, analyze] | ||
runs-on: ubuntu-latest | ||
env: | ||
out: benchmark.out | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: 'stable' | ||
- run: go mod download | ||
- run: make bench-${{ matrix.phase }} | tee ${{ env.out }} | ||
- uses: actions/cache@v3 | ||
with: | ||
path: ./cache | ||
key: ${{ runner.os }}-benchmark-${{ matrix.phase }} | ||
- uses: benchmark-action/github-action-benchmark@v1 | ||
with: | ||
tool: 'go' | ||
output-file-path: ${{ env.out }} | ||
external-data-json-path: ./cache/benchmark-data-${{ matrix.phase }}.json | ||
fail-on-alert: true | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
comment-on-alert: true |
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