-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (36 loc) · 1.06 KB
/
go.yml
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
# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Go
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
jobs:
ci:
name: Vet, Lint, Test and Vulnerability Check
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ">=1.22.4"
- name: Vet
run: make vet
- name: Lint
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin
golangci-lint run --out-format=github-actions
- name: Vulnerability Check
uses: golang/govulncheck-action@v1
with:
go-package: ./...
go-version-input: ">=1.22.4"
check-latest: true
- name: Integration Tests
run: make test_integration
- name: Recovery Tests
run: make test_recovery