Skip to content
This repository was archived by the owner on Feb 16, 2023. It is now read-only.

Commit 4738931

Browse files
committed
Add build verification to CircleCI
1 parent b7f3f23 commit 4738931

1 file changed

Lines changed: 20 additions & 1 deletion

File tree

.circleci/config.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,22 @@
1-
version: 2
1+
version: 2.1
22
jobs:
33
lint:
44
docker:
55
- image: golangci/golangci-lint:v1.23.8-alpine
66
steps:
77
- checkout
88
- run: golangci-lint run
9+
verify-build:
10+
parameters:
11+
os:
12+
type: string
13+
arch:
14+
type: string
15+
docker:
16+
- image: golangci/golangci-lint:v1.23.8-alpine
17+
steps:
18+
- checkout
19+
- run: GOOS=<< parameters.os >> GOARCH=<< parameters.arch >> go build ./cmd/secrethub
920
test:
1021
docker:
1122
- image: circleci/golang:1.13
@@ -31,5 +42,13 @@ workflows:
3142
pipeline:
3243
jobs:
3344
- lint
45+
- verify-build:
46+
matrix:
47+
parameters:
48+
arch: ["amd64", "386"]
49+
os: ["darwin", "linux", "windows"]
50+
exclude:
51+
- arch: 386
52+
os: darwin
3453
- test
3554
- verify-goreleaser

0 commit comments

Comments
 (0)