Skip to content

Commit 58ec6c9

Browse files
committed
ci: run tests for go packages
Signed-off-by: Gareth Jones <[email protected]>
1 parent c68d554 commit 58ec6c9

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

.github/workflows/checks.yml

+21-1
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,30 @@ concurrency:
1717
permissions: {}
1818

1919
jobs:
20+
tests_osv-go:
21+
permissions:
22+
contents: read # to fetch code (actions/checkout)
23+
name: Run `packages/go` unit tests
24+
runs-on: ubuntu-latest
25+
defaults:
26+
run:
27+
working-directory: ./packages/go
28+
steps:
29+
- name: Check out code
30+
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
31+
with:
32+
persist-credentials: false
33+
- name: Set up Go
34+
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
35+
with:
36+
go-version: stable
37+
check-latest: true
38+
39+
- run: go test ./...
2040
tests_osv-linter:
2141
permissions:
2242
contents: read # to fetch code (actions/checkout)
23-
name: Run unit tests
43+
name: Run `osv-linter` unit tests
2444
runs-on: ubuntu-latest
2545
defaults:
2646
run:

0 commit comments

Comments
 (0)