Skip to content

Commit 7e51c8a

Browse files
committed
Add go test to CI/CD pipeline
Signed-off-by: Noah Stride <noah.stride@goteleport.com>
1 parent f037a83 commit 7e51c8a

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

.github/workflows/test.yaml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,21 @@ jobs:
2424
- name: Lint
2525
uses: golangci/golangci-lint-action@v6
2626
with:
27-
version: v1.61
27+
version: v1.61
28+
test:
29+
runs-on: ubuntu-latest
30+
permissions:
31+
contents: read
32+
pull-requests: read
33+
checks: write
34+
steps:
35+
- name: Checkout
36+
uses: actions/checkout@v4
37+
with:
38+
fetch-depth: 0
39+
- name: Set up Go
40+
uses: actions/setup-go@v5
41+
with:
42+
go-version-file: 'go.mod'
43+
- name: Run Tests
44+
run: go test -v -race -shuffle=on -coverprofile=coverage.txt ./...

0 commit comments

Comments
 (0)