-
Notifications
You must be signed in to change notification settings - Fork 3
47 lines (42 loc) · 1.05 KB
/
test.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
on: [push, pull_request]
name: skipper-test
env:
GO_VERSION: "1.21.0"
GO_VERSION_SHORT: "1.21"
GOLANGCI_VERSION: "v1.54.0"
permissions:
contents: read
jobs:
vet:
name: "go vet"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- run: go vet $(go list ./... | grep -v /vendor/)
golangci-lint:
name: golangci-lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- uses: actions/setup-go@v5
with:
cache: false
go-version: ${{ env.GO_VERSION }}
- uses: golangci/golangci-lint-action@v4
with:
version: ${{ env.GOLANGCI_VERSION }}
test:
name: "go test"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- uses: actions/checkout@v4
- run: go test $(go list ./... | grep -v /vendor/)