-
Notifications
You must be signed in to change notification settings - Fork 67
47 lines (45 loc) · 1.01 KB
/
ci.yaml
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
36
37
38
39
40
41
42
43
44
45
46
47
name: "Tests"
on:
merge_group:
pull_request:
push:
branches:
- main
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-go@v3
with:
go-version-file: go.mod
- run: make fmt
- run: make tidy
- run: make vet
- run: make test-generate
- run: make test-unit
- run: make test-system
- run: make test-heavy
test-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version-file: go.mod
- run: go test -short ./...
- run: mkdir dist -ea 0
- run: go build -o dist ./cmd/...
- run: go test -v ./mdtest
output-check:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version-file: go.mod
- run: make install
- run: make output-check