Skip to content

Commit 4930eda

Browse files
committed
chore(ci): split out benchmarks
Attempt to resolve too many open files in ci
1 parent 9012820 commit 4930eda

2 files changed

Lines changed: 34 additions & 1 deletion

File tree

.github/workflows/bench.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Run Benchmarks
2+
on:
3+
push:
4+
branches:
5+
- "**"
6+
pull_request:
7+
types:
8+
- opened
9+
- reopened
10+
branches:
11+
- "**"
12+
jobs:
13+
unittests:
14+
name: Unit Tests
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v3
18+
- name: Set up Go
19+
uses: actions/setup-go@v3
20+
with:
21+
go-version: 1.24
22+
check-latest: true
23+
cache: true
24+
- name: Get dependencies
25+
run: |
26+
go install github.com/kyoh86/richgo@latest
27+
go get -v -t -d ./...
28+
- name: Run tests
29+
id: tests
30+
run: richgo test -v -bench=. ./...
31+
env:
32+
IN_TRAVIS_CI: yes
33+
RICHGO_FORCE_COLOR: 1

.github/workflows/tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
go get -v -t -d ./...
2828
- name: Run tests
2929
id: tests
30-
run: richgo test -v -race -cover -bench=. ./...
30+
run: richgo test -v -race -cover ./...
3131
env:
3232
IN_TRAVIS_CI: yes
3333
RICHGO_FORCE_COLOR: 1

0 commit comments

Comments
 (0)