-
-
Notifications
You must be signed in to change notification settings - Fork 82
75 lines (63 loc) · 1.97 KB
/
continuous-integration.yaml
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: Continuous Integration
on:
pull_request:
jobs:
go:
name: Go
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
cache-dependency-path: go.sum
- name: Lint
uses: golangci/golangci-lint-action@v6
with:
args: --config=./.github/golangci.yaml
skip-cache: true
- name: Test
run: go test ./...
- name: Build
run: make release
- name: Upload Artifacts (darwin-amd64)
uses: actions/upload-artifact@v4
with:
name: script_exporter-darwin-amd64
path: bin/script_exporter-darwin-amd64
if-no-files-found: error
- name: Upload Artifacts (darwin-arm64)
uses: actions/upload-artifact@v4
with:
name: script_exporter-darwin-arm64
path: bin/script_exporter-darwin-arm64
if-no-files-found: error
- name: Upload Artifacts (linux-amd64)
uses: actions/upload-artifact@v4
with:
name: script_exporter-linux-amd64
path: bin/script_exporter-linux-amd64
if-no-files-found: error
- name: Upload Artifacts (linux-armv7)
uses: actions/upload-artifact@v4
with:
name: script_exporter-linux-armv7
path: bin/script_exporter-linux-armv7
if-no-files-found: error
- name: Upload Artifacts (linux-arm64)
uses: actions/upload-artifact@v4
with:
name: script_exporter-linux-arm64
path: bin/script_exporter-linux-arm64
if-no-files-found: error
- name: Upload Artifacts (windows-amd64.exe)
uses: actions/upload-artifact@v4
with:
name: script_exporter-windows-amd64.exe
path: bin/script_exporter-windows-amd64.exe
if-no-files-found: error