-
Notifications
You must be signed in to change notification settings - Fork 34
35 lines (35 loc) · 776 Bytes
/
Copy pathgo_test.yaml
File metadata and controls
35 lines (35 loc) · 776 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Go Tests
on:
push:
branches:
- "*"
paths:
- "pkg/**"
- "cmd/**"
- "go.mod"
- "go.sum"
- "webui/webui.go"
- ".github/workflows/go_test.yaml"
pull_request:
branches:
- main
permissions:
contents: read
jobs:
test:
name: Run Tests
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.26"
cache: true
- name: Create empty webui dist directory
run: mkdir -p webui/dist && touch webui/dist/.gitkeep
- name: Run Tests
run: go test ./... -v
- name: Run Tests with Race Detector
run: go test -race ./... -v