-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (43 loc) · 1.21 KB
/
ci.yml
File metadata and controls
48 lines (43 loc) · 1.21 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
name: ci
on:
pull_request:
branches: [main]
push:
branches: [main]
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version: "1.26"
- uses: golangci/golangci-lint-action@v8
with:
version: v2.5.0
# Build the linter from source with the runner's Go. Prebuilt
# golangci-lint binaries are released built with go1.25; if any
# file under analysis (theirs or transitive dep) needs go1.26
# the binary panics. `goinstall` sidesteps that by compiling the
# linter with the same Go we use to compile the project.
install-mode: goinstall
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version: "1.26"
- run: go mod download
- run: go test -timeout 120s -race -cover ./...
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version: "1.26"
- run: go build -o /tmp/stackit-nuke ./
- run: /tmp/stackit-nuke --version