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

Commit 09decfc

Browse files
authored
Merge pull request #278 from secrethub/feature/ci-verify-build
Add build verification to CircleCI
2 parents 5434d0c + dc6c3a6 commit 09decfc

1 file changed

Lines changed: 21 additions & 1 deletion

File tree

.circleci/config.yml

Lines changed: 21 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: circleci/golang:1.13
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,14 @@ workflows:
3142
pipeline:
3243
jobs:
3344
- lint
45+
- verify-build:
46+
name: verify-build-<< matrix.os >>-<< matrix.arch >>
47+
matrix:
48+
parameters:
49+
os: ["darwin", "linux", "windows"]
50+
arch: ["amd64", "386"]
51+
exclude:
52+
- os: darwin
53+
arch: 386
3454
- test
3555
- verify-goreleaser

0 commit comments

Comments
 (0)