This repository was archived by the owner on Aug 30, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +45
-15
lines changed Expand file tree Collapse file tree 3 files changed +45
-15
lines changed Original file line number Diff line number Diff line change 1
1
name : build
2
- on : [push]
2
+ on :
3
+ push :
4
+ branches :
5
+ - master
6
+ pull_request :
7
+ branches :
8
+ - master
3
9
4
10
jobs :
5
11
build :
@@ -10,29 +16,45 @@ jobs:
10
16
- name : Build
11
17
run : make -j build/linux build/windows
12
18
- name : Upload
19
+ if : github.ref == 'refs/heads/master'
13
20
uses : actions/upload-artifact@v2
14
21
with :
15
22
name : coder-cli
16
23
path : ./ci/bin/coder-cli-*
17
- build_darwin :
24
+
25
+ build_darwin_pull :
18
26
runs-on : macos-latest
27
+ if : github.ref != 'refs/heads/master'
19
28
steps :
20
29
- name : Checkout
21
- uses : actions/checkout@v1
30
+ uses : actions/checkout@v2
31
+ - name : Build
32
+ run : unset CI && make build/macos
33
+
34
+ build_darwin_master :
35
+ runs-on : macos-latest
36
+ if : github.ref == 'refs/heads/master'
37
+ steps :
38
+ - name : Checkout
39
+ uses : actions/checkout@v2
40
+
22
41
- name : Install Gon
23
42
run : |
24
43
brew tap mitchellh/gon
25
44
brew install mitchellh/gon/gon
45
+
26
46
- name : Import Signing Certificates
27
47
uses : Apple-Actions/import-codesign-certs@v1
28
48
with :
29
49
p12-file-base64 : ${{ secrets.APPLE_DEVELOPER_CERTIFICATE_P12_BASE64 }}
30
50
p12-password : ${{ secrets.APPLE_DEVELOPER_CERTIFICATE_PASSWORD }}
31
- - name : Build
51
+
52
+ - name : Build master
32
53
run : make build/macos
33
54
env :
34
55
AC_USERNAME : ${{ secrets.AC_USERNAME }}
35
56
AC_PASSWORD : ${{ secrets.AC_PASSWORD }}
57
+
36
58
- name : Upload
37
59
uses : actions/upload-artifact@v2
38
60
with :
Original file line number Diff line number Diff line change 1
1
name : integration
2
2
on :
3
3
push :
4
+ branches :
5
+ - master
4
6
schedule :
5
7
- cron : ' */180 * * * *'
6
8
@@ -12,15 +14,15 @@ jobs:
12
14
CODER_EMAIL : ${{ secrets.CODER_EMAIL }}
13
15
CODER_PASSWORD : ${{ secrets.CODER_PASSWORD }}
14
16
steps :
15
- - uses : actions/checkout@v1
16
- - uses : actions/cache@v1
17
+ - uses : actions/checkout@v2
18
+ - uses : actions/cache@v2
17
19
with :
18
20
path : ~/go/pkg/mod
19
21
key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
20
22
restore-keys : |
21
23
${{ runner.os }}-go-
22
24
- uses : actions/setup-go@v2
23
25
with :
24
- go-version : ' ^1.14 '
26
+ go-version : ' ^1.15 '
25
27
- name : integration tests
26
28
run : ./ci/scripts/integration.sh
Original file line number Diff line number Diff line change 1
1
name : test
2
- on : [push]
2
+ on :
3
+ push :
4
+ branches :
5
+ - master
6
+ pull_request :
7
+ branches :
8
+ - master
3
9
4
10
jobs :
5
11
fmt :
6
12
runs-on : ubuntu-latest
7
13
steps :
8
- - uses : actions/checkout@v1
9
- - uses : actions/cache@v1
14
+ - uses : actions/checkout@v2
15
+ - uses : actions/cache@v2
10
16
with :
11
17
path : ~/go/pkg/mod
12
18
key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
@@ -25,12 +31,12 @@ jobs:
25
31
uses : golangci/golangci-lint-action@v2
26
32
with :
27
33
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
28
- version : v1.29
34
+ version : v1.36
29
35
test :
30
36
runs-on : ubuntu-latest
31
37
steps :
32
- - uses : actions/checkout@v1
33
- - uses : actions/cache@v1
38
+ - uses : actions/checkout@v2
39
+ - uses : actions/cache@v2
34
40
with :
35
41
path : ~/go/pkg/mod
36
42
key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
43
49
gendocs :
44
50
runs-on : ubuntu-latest
45
51
steps :
46
- - uses : actions/checkout@v1
47
- - uses : actions/cache@v1
52
+ - uses : actions/checkout@v2
53
+ - uses : actions/cache@v2
48
54
with :
49
55
path : ~/go/pkg/mod
50
56
key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
You can’t perform that action at this time.
0 commit comments