-
-
Notifications
You must be signed in to change notification settings - Fork 4
44 lines (32 loc) · 830 Bytes
/
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
name: Go
on:
pull_request:
branches: [ "main" ]
push:
branches: [ "main" ]
jobs:
Fleet:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Go environment
uses: actions/[email protected]
with:
go-version: 1.23.x
- name: Check Go environment
run: go version
- name: Install dependencies
run: |
go clean -modcache
go mod tidy
go get -v -t ./...
- name: Verify imports
run: |
go mod tidy
go build ./...
- name: Install golangci-lint
run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
- name: Run golangci-lint
run: golangci-lint run ./...
- name: Build
run: go build -o resq