Skip to content

Commit

Permalink
build(ci): seperate regression tests workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dwisiswant0 committed Sep 6, 2023
1 parent 32c2be1 commit 26a3e5d
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 23 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/regression.yaml
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
23 changes: 0 additions & 23 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,26 +74,3 @@ jobs:
go-version: 'stable'
- run: go install -v github.com/palantir/go-license@latest
- run: make license-verify

regression:
runs-on: ubuntu-latest
env:
out: benchmark.out
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: 'stable'
- run: make bench | tee ${{ env.out }}
- uses: actions/cache@v3
with:
path: ./cache
key: ${{ runner.os }}-benchmark
- uses: benchmark-action/github-action-benchmark@v1
with:
tool: 'go'
output-file-path: ${{ env.out }}
external-data-json-path: ./cache/benchmark-data.json
fail-on-alert: true
github-token: ${{ secrets.GITHUB_TOKEN }}
comment-on-alert: true

0 comments on commit 26a3e5d

Please sign in to comment.