4
4
push :
5
5
branches : [ master ]
6
6
tags :
7
- - ' v[0-9]+.[0-9]+.[0-9]+(-beta)?[0-9]*'
7
+ # Push events to matching v*, i.e. v1.0, v20.15.10
8
+ - ' v*.*.*'
8
9
pull_request :
9
10
branches : [ master ]
10
11
11
12
env :
12
13
GIMME_GO_VERSION : 1.20.1
13
- GIMME_OS : linux
14
+ GIMME_OS : linux
14
15
GIMME_ARCH : amd64
15
-
16
+
16
17
jobs :
17
18
fmt :
18
19
runs-on : ubuntu-latest
@@ -39,10 +40,10 @@ jobs:
39
40
recursive : true
40
41
ignore : " DL3018"
41
42
dockerfile : scripts/dockerfiles/Dockerfile.*
42
-
43
+
43
44
tests_coveralls :
44
45
runs-on : ubuntu-latest
45
- env :
46
+ env :
46
47
COVERALLS_TOKEN : ${{ secrets.GITHUB_TOKEN }}
47
48
steps :
48
49
- uses : actions/checkout@v3
60
61
run : |
61
62
go get github.com/mattn/goveralls@latest
62
63
goveralls -coverprofile=coverage.txt -service=github
63
-
64
+
64
65
tests_sourceclear :
65
66
runs-on : ubuntu-latest
66
67
steps :
@@ -73,11 +74,11 @@ jobs:
73
74
env :
74
75
SRCCLR_API_TOKEN : ${{ secrets.SRCCLR_API_TOKEN }}
75
76
run : curl -sSL https://download.sourceclear.com/ci.sh | bash -s – scan
76
- - name : run
77
+ - name : run
77
78
run : |
78
79
make -e setup build
79
80
go get -v -d ./...
80
-
81
+
81
82
tests_windows_build_ps1 :
82
83
runs-on : windows-2022
83
84
steps :
93
94
if : steps.windows_build.outcome == 'success'
94
95
run : |
95
96
scripts/upload_artifacts.sh
96
-
97
+
97
98
tests_acceptance_test :
98
99
runs-on : ubuntu-latest
99
100
steps :
@@ -111,12 +112,12 @@ jobs:
111
112
make -e setup build
112
113
pip install -r ./tests/acceptance/requirements.txt
113
114
MYHOST="http://localhost:8080" make test-acceptance
114
-
115
+
115
116
integration_tests :
116
117
if : ${{ startsWith(github.ref, 'refs/tags/') != true }}
117
118
uses : optimizely/agent/.github/workflows/integration_test.yml@master
118
119
secrets : inherit
119
-
120
+
120
121
tests_using_latest_tag_no_upload :
121
122
runs-on : ubuntu-latest
122
123
steps :
@@ -147,7 +148,7 @@ jobs:
147
148
make -e setup build
148
149
./scripts/ci_create_packages.sh
149
150
./scripts/ci_build_generate_secret.sh
150
-
151
+
151
152
build_upload_publish_draft :
152
153
if : startsWith(github.ref, 'refs/tags/')
153
154
runs-on : ubuntu-latest
@@ -192,7 +193,7 @@ jobs:
192
193
release_github_v2.sh "$APP_VERSION"
193
194
# attach generate_secret to the github release
194
195
./scripts/ci_build_generate_secret.sh && ./scripts/ci_attach_generate_secret.sh
195
-
196
+
196
197
test_github_release_assets :
197
198
if : startsWith(github.ref, 'refs/tags/')
198
199
runs-on : ${{ matrix.os }}
@@ -206,7 +207,7 @@ jobs:
206
207
TARGET : darwin-amd64
207
208
- os : ubuntu-latest
208
209
TARGET : linux-amd64
209
- os_name : linux
210
+ os_name : linux
210
211
- os : windows-2022
211
212
os_name : windows
212
213
TARGET : windows-amd64
@@ -247,4 +248,4 @@ jobs:
247
248
if : steps.script.outcome != 'success'
248
249
run : |
249
250
SLACK_TEXT="${APP_VERSION} ${{ matrix.os_name }} assets failed verification." send_to_slack.sh
250
-
251
+
0 commit comments