File tree Expand file tree Collapse file tree 2 files changed +96
-4
lines changed
Expand file tree Collapse file tree 2 files changed +96
-4
lines changed Original file line number Diff line number Diff line change 1- name : Generate docs
1+ name : CI - Master - Generate docs
22
33on :
44 push :
@@ -14,20 +14,20 @@ jobs:
1414
1515 steps :
1616
17- - name : Check out code
17+ - name : Check out code
1818 uses : actions/checkout@v2
1919
2020 - name : Generate docs from files
2121 run : |
2222 cd docs
2323 ./generate.sh > index.md
24-
24+
2525 - name : Commit updated docs
2626 run : |
2727 git config user.email "[email protected] " 2828 git config user.name "Github Actions"
2929 git add docs
30-
30+
3131 git commit -m "docs: Automatic documentation update"
3232 git push origin HEAD:${GITHUB_REF}
3333
Original file line number Diff line number Diff line change 1+ name : CI - Master
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+
8+ jobs :
9+ build-multiarch :
10+ name : Build
11+ runs-on : ubuntu-latest
12+ strategy :
13+ matrix :
14+ include :
15+ - os : darwin
16+ arch : amd64
17+ - os : freebsd
18+ arch : 386
19+ - os : freebsd
20+ arch : amd64
21+ - os : freebsd
22+ arch : arm
23+ - os : linux
24+ arch : 386
25+ - os : linux
26+ arch : amd64
27+ - os : linux
28+ arch : arm
29+ - os : openbsd
30+ arch : 386
31+ - os : openbsd
32+ arch : amd64
33+ - os : solaris
34+ arch : amd64
35+ - os : windows
36+ arch : 386
37+ - os : windows
38+ arch : amd64
39+ steps :
40+ - name : Checkout code
41+ uses : actions/checkout@v2
42+
43+ - name : Build project
44+ run : GOOS=${{ matrix.os }} GOARCH=${{ matrix.arch }} go build -o terraform-provider-sysdig
45+
46+ test :
47+ name : Test
48+ runs-on : ubuntu-latest
49+
50+ steps :
51+ - name : Check out code
52+ uses : actions/checkout@v2
53+
54+ - name : Set up Go
55+ uses : actions/setup-go@v2
56+ with :
57+ go-version : ^1.14
58+
59+ - name : Cache modules
60+ uses : actions/cache@v1
61+ with :
62+ path : ~/go/pkg/mod
63+ key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
64+ restore-keys : |
65+ ${{ runner.os }}-go-
66+
67+ - name : Get dependencies
68+ run : |
69+ go get -u -v github.com/onsi/ginkgo/ginkgo
70+
71+ - name : Test
72+ run : make test
73+
74+ - name : Acceptance tests
75+ run : make testacc
76+ env :
77+ SYSDIG_MONITOR_API_TOKEN : ${{ secrets.KUBELAB_MONITOR_API_TOKEN }}
78+ SYSDIG_SECURE_API_TOKEN : ${{ secrets.KUBELAB_SECURE_API_TOKEN }}
79+
80+ lint :
81+ name : Lint
82+ runs-on : ubuntu-latest
83+
84+ steps :
85+ - name : Check out code
86+ uses : actions/checkout@v2
87+
88+ - name : Lint
89+ continue-on-error : true
90+ uses : golangci/golangci-lint-action@v1
91+ with :
92+ version : v1.27
You can’t perform that action at this time.
0 commit comments