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 +40
-14
lines changed Expand file tree Collapse file tree 3 files changed +40
-14
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,30 +16,42 @@ 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-*
24
+
17
25
build_darwin :
18
26
runs-on : macos-latest
19
27
steps :
20
28
- name : Checkout
21
- uses : actions/checkout@v1
29
+ uses : actions/checkout@v2
22
30
- name : Install Gon
31
+ if : github.ref == 'refs/heads/master'
23
32
run : |
24
33
brew tap mitchellh/gon
25
34
brew install mitchellh/gon/gon
26
35
- name : Import Signing Certificates
36
+ if : github.ref == 'refs/heads/master'
27
37
uses : Apple-Actions/import-codesign-certs@v1
28
38
with :
29
39
p12-file-base64 : ${{ secrets.APPLE_DEVELOPER_CERTIFICATE_P12_BASE64 }}
30
40
p12-password : ${{ secrets.APPLE_DEVELOPER_CERTIFICATE_PASSWORD }}
31
- - name : Build
41
+ - name : Build master
42
+ if : github.ref == 'refs/heads/master'
32
43
run : make build/macos
33
44
env :
34
45
AC_USERNAME : ${{ secrets.AC_USERNAME }}
35
46
AC_PASSWORD : ${{ secrets.AC_PASSWORD }}
47
+ - name : Build pull request
48
+ if : github.ref != 'refs/heads/master'
49
+ run : CI=false make build/macos
50
+ env :
51
+ AC_USERNAME : ${{ secrets.AC_USERNAME }}
52
+ AC_PASSWORD : ${{ secrets.AC_PASSWORD }}
36
53
- name : Upload
54
+ if : github.ref == 'refs/heads/master'
37
55
uses : actions/upload-artifact@v2
38
56
with :
39
57
name : coder-cli
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