Skip to content

Commit 28d16f2

Browse files
committed
ci: add PR tests
also updates the go setup var for the release action to use stable go version Signed-off-by: TJ Hoplock <[email protected]>
1 parent 973a82a commit 28d16f2

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Set up Go
2222
uses: actions/setup-go@v5
2323
with:
24-
go-version: '>=1.23.0'
24+
go-version: stable
2525
cache: true
2626
- name: Go Preflight Tests
2727
run: |

.github/workflows/tests.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: tests
2+
on:
3+
push:
4+
tags:
5+
- v*
6+
branches:
7+
- main
8+
pull_request:
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
golangci:
15+
name: test
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
with:
21+
fetch-depth: 0
22+
- run: git fetch --force --tags
23+
- name: Set up Go
24+
uses: actions/setup-go@v5
25+
with:
26+
go-version: stable
27+
cache: true
28+
- name: Go Preflight Tests
29+
run: |
30+
go mod tidy
31+
go test -v ./...

0 commit comments

Comments
 (0)