-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (25 loc) · 750 Bytes
/
Copy pathtest.yml
File metadata and controls
32 lines (25 loc) · 750 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
name: Test
on:
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build-and-audit:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.26'
- name: Install golangci-lint
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v2.9.0
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
- name: Install dependencies
run: make deps
- name: Build binary
run: make build
- name: Run audit (lint, vet, staticcheck, vulncheck, tests)
run: make audit