File tree Expand file tree Collapse file tree 7 files changed +269
-219
lines changed Expand file tree Collapse file tree 7 files changed +269
-219
lines changed Original file line number Diff line number Diff line change
1
+ test_task_template : &TEST_TASK_TEMPLATE
2
+ modules_cache :
3
+ fingerprint_script : cat go.sum
4
+ folder : $GOPATH/pkg/mod
5
+ deps_script : make deps
6
+ clean_script : make clean
7
+ bin_script : make bin
8
+ test_script : make test
9
+
10
+ linux_test_task :
11
+ env :
12
+ matrix :
13
+ - VERSION : 1.17
14
+ - VERSION : 1.18
15
+ name : Tests (Go $VERSION)
16
+ container :
17
+ image : golang:$VERSION
18
+ << : *TEST_TASK_TEMPLATE
19
+
20
+ linux_arm64_test_task :
21
+ env :
22
+ matrix :
23
+ - VERSION : 1.17
24
+ - VERSION : 1.18
25
+ name : Tests (Go $VERSION)
26
+ arm_container :
27
+ image : golang:$VERSION
28
+ << : *TEST_TASK_TEMPLATE
29
+
30
+ macos_arm64_test_task :
31
+ macos_instance :
32
+ image : ghcr.io/cirruslabs/macos-ventura-base:latest
33
+ pre_req_script : brew install gox
34
+ << : *TEST_TASK_TEMPLATE
35
+
36
+ lint_task :
37
+ name : GolangCI Lint
38
+ container :
39
+ image : golangci/golangci-lint:latest
40
+ run_script : golangci-lint run -v --out-format json > lint-report.json
41
+ always :
42
+ golangci_artifacts :
43
+ path : lint-report.json
44
+ type : text/json
45
+ format : golangci
Original file line number Diff line number Diff line change @@ -2,19 +2,21 @@ name: golangci-lint
2
2
on :
3
3
push :
4
4
tags :
5
- - v1 *
5
+ - v2 *
6
6
branches :
7
- - v1.x.x
7
+ - master
8
+ - main
8
9
pull_request :
9
10
jobs :
10
11
golangci :
11
12
name : lint
12
13
strategy :
14
+ fail-fast : false
13
15
matrix :
14
16
go-version : [
15
17
1.17.x,
16
18
1.18.x,
17
- # 1.19.x
19
+ 1.19.x
18
20
]
19
21
os : [ubuntu-latest]
20
22
runs-on : ${{ matrix.os }}
Original file line number Diff line number Diff line change 1
1
FROM golang:1.18
2
2
3
3
# Install pact ruby standalone binaries
4
- RUN curl -LO https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v1.88.78 /pact-1.88.78 -linux-x86_64.tar.gz; \
5
- tar -C /usr/local -xzf pact-1.88.78 -linux-x86_64.tar.gz; \
6
- rm pact-1.88.78 -linux-x86_64.tar.gz
4
+ RUN curl -LO https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v2.0.3 /pact-2.0.3 -linux-x86_64.tar.gz; \
5
+ tar -C /usr/local -xzf pact-2.0.3 -linux-x86_64.tar.gz; \
6
+ rm pact-2.0.3 -linux-x86_64.tar.gz
7
7
8
8
ENV PATH /usr/local/pact/bin:$PATH
9
9
Original file line number Diff line number Diff line change @@ -14,9 +14,10 @@ docker:
14
14
bin :
15
15
gox -os=" darwin" -arch=" amd64" -output=" build/pact-go_{{.OS}}_{{.Arch}}"
16
16
gox -os=" darwin" -arch=" arm64" -output=" build/pact-go_{{.OS}}_{{.Arch}}"
17
+ gox -os=" windows" -arch=" amd64" -output=" build/pact-go_{{.OS}}_{{.Arch}}"
17
18
gox -os=" windows" -arch=" 386" -output=" build/pact-go_{{.OS}}_{{.Arch}}"
18
- gox -os=" linux" -arch=" 386" -output=" build/pact-go_{{.OS}}_{{.Arch}}"
19
19
gox -os=" linux" -arch=" amd64" -output=" build/pact-go_{{.OS}}_{{.Arch}}"
20
+ gox -os=" linux" -arch=" arm64" -output=" build/pact-go_{{.OS}}_{{.Arch}}"
20
21
@echo " ==> Results:"
21
22
ls -hl build/
22
23
@@ -34,6 +35,8 @@ install:
34
35
echo " --- 🐿 Installing Pact CLI dependencies" ; \
35
36
curl -fsSL https://raw.githubusercontent.com/pact-foundation/pact-ruby-standalone/master/install.sh | bash -x; \
36
37
fi
38
+ # NOTE: pins pact-ruby-standalone to a fixed version
39
+ # curl -fsSL https://raw.githubusercontent.com/pact-foundation/pact-ruby-standalone/master/install.sh | tag=v2.0.3 bash -x; \
37
40
38
41
publish_pacts :
39
42
@echo " \n========== STAGE: publish pacts ==========\n"
You can’t perform that action at this time.
0 commit comments