Skip to content

Commit f5401ec

Browse files
committed
ci: switch to faster test workflow
tl;dr drop out Nix, leverage Go mod cache
1 parent ed41ac7 commit f5401ec

File tree

1 file changed

+17
-11
lines changed

1 file changed

+17
-11
lines changed

.github/workflows/test.yaml

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,27 @@
1-
name: Go test
1+
name: Go Tests
22

33
on:
44
push:
5-
workflow_dispatch:
6-
7-
permissions:
8-
contents: read
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
98

109
jobs:
1110
test:
11+
name: Run Tests
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- uses: actions/checkout@v4
16-
- uses: DeterminateSystems/flake-checker-action@main
17-
- uses: DeterminateSystems/determinate-nix-action@main
18-
- uses: DeterminateSystems/flakehub-cache-action@main
15+
- uses: actions/checkout@v5
16+
17+
- name: Set up Go
18+
uses: actions/setup-go@v5
19+
with:
20+
go-version-file: "go.mod"
21+
cache: true
22+
23+
- name: Install dependencies
24+
run: go mod download
1925

20-
- name: Run go test
21-
run: nix develop --command go test ./...
26+
- name: Run tests
27+
run: go test ./...

0 commit comments

Comments
 (0)