-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (47 loc) · 1.27 KB
/
qa.yml
File metadata and controls
61 lines (47 loc) · 1.27 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: CI
on:
push:
branches: [main, initial]
pull_request:
branches: [main, initial]
jobs:
test:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4.2.2
- uses: actions/setup-go@v5.2.0
with:
go-version-file: go.mod
- name: Run tests
run: go test -v -race ./...
lint:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4.2.2
- uses: actions/setup-go@v5.2.0
with:
go-version-file: go.mod
- name: golangci-lint
uses: golangci/golangci-lint-action@v6.2.0
with:
version: v2.8.0
fmt:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4.2.2
- uses: actions/setup-go@v5.2.0
with:
go-version-file: go.mod
- name: Install golangci-lint
run: go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.8.0
- name: Check formatting
run: test -z "$(golangci-lint fmt --diff)" || (echo "Run 'golangci-lint fmt' to fix formatting" && exit 1)
build:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4.2.2
- uses: actions/setup-go@v5.2.0
with:
go-version-file: go.mod
- name: Build
run: go build -o docker-api-auth .