Skip to content

Commit

Permalink
Merge pull request #140 from EmmEff/update-for-go-1.20
Browse files Browse the repository at this point in the history
CI/CD updates
  • Loading branch information
EmmEff authored Feb 13, 2023
2 parents 2bb6e80 + af0c91a commit 0350268
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
14 changes: 7 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ executors:
- image: node:18-slim
golangci-lint:
docker:
- image: golangci/golangci-lint:v1.49
- image: golangci/golangci-lint:v1.51
golang-previous:
docker:
- image: golang:1.18
- image: golang:1.19
golang-latest:
docker:
- image: golang:1.19
- image: golang:1.20

jobs:
lint-markdown:
Expand Down Expand Up @@ -89,7 +89,7 @@ jobs:
command: curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | sh -s -- -b /usr/local/bin
- run:
name: Test Release
command: curl -sL https://git.io/goreleaser | bash -s -- --snapshot --skip-publish
command: curl -sfL https://goreleaser.com/static/run | DISTRIBUTION=oss bash -s -- release --snapshot --skip-publish

publish-release:
executor: golang-latest
Expand All @@ -111,12 +111,12 @@ jobs:
command: curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | sh -s -- -b /usr/local/bin
- run:
name: Publish Release
command: curl -sL https://git.io/goreleaser | bash
command: curl -sfL https://goreleaser.com/static/run | DISTRIBUTION=oss bash -s -- release
- run:
name: Install cosign
command: |
wget https://github.com/sigstore/cosign/releases/download/v1.12.0/cosign_1.12.0_amd64.deb
dpkg -i cosign_1.12.0_amd64.deb
wget https://github.com/sigstore/cosign/releases/download/v1.13.1/cosign_1.13.1_amd64.deb
dpkg -i cosign_1.13.1_amd64.deb
- run:
name: Get Cosign Key
command: echo $COSIGN_KEY | base64 -d > cosign.key
Expand Down
4 changes: 0 additions & 4 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ linters:
- bodyclose
- containedctx
- contextcheck
- deadcode
- decorder
- depguard
- dogsled
Expand All @@ -30,13 +29,10 @@ linters:
- nilnil
- prealloc
- revive
- rowserrcheck
- staticcheck
- structcheck
- stylecheck
- tenv
- typecheck
- unconvert
- unparam
- unused
- varcheck
2 changes: 2 additions & 0 deletions client/output_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ func TestOutput(t *testing.T) {

// Loop over test cases
for _, tt := range tests {
tt := tt

t.Run(tt.description, func(t *testing.T) {
t.Parallel()

Expand Down

0 comments on commit 0350268

Please sign in to comment.