Skip to content

Commit

Permalink
feat(benchmark): run benchmark on HAED^ (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
bkrukowski authored Oct 31, 2023
1 parent facde28 commit 3bb7854
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 5 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Benchmark

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:

build:
name: Benchmark
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go: [ '1.14', '1.15', '1.16', '1.17', '1.18', '1.19', '1.20', '1.21' ]
steps:

- name: Set up Go 1.x
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v4
with:
fetch-depth: 2

- name: Benchmark
run: make benchmark

- run: git checkout HEAD^
- name: Benchmark HEAD^
run: make benchmark
7 changes: 2 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ jobs:
steps:

- name: Set up Go 1.x
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Test
run: make tests
Expand All @@ -40,6 +40,3 @@ jobs:

- name: Deprecations
run: make deprecations

- name: Benchmark
run: make benchmark

0 comments on commit 3bb7854

Please sign in to comment.