Release of version 1.6.0 #834
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Go CI workflow | |
name: Go CI | |
on: | |
push: | |
paths: | |
- cli/** | |
pull_request: | |
branches: [ main, release/**, feature/** ] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
go-version: | |
- 1.20.x | |
- 1.21.x | |
os: | |
- ubuntu-latest | |
- windows-latest | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Prepare environment | |
run: go install golang.org/x/lint/golint@latest | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Run vet & lint | |
working-directory: cli | |
run: | | |
go vet ./... | |
golint ./... | |
- name: Run build | |
working-directory: cli | |
run: go build -x | |
- name: Run tests | |
working-directory: cli | |
run: go test ./... | |
- name: Install GoSec | |
shell: bash | |
run: curl -sfL https://raw.githubusercontent.com/securego/gosec/v2.17.0/install.sh | sh -s -- -b $(go env GOPATH)/bin v2.17.0 | |
- name: Run security scan | |
working-directory: cli | |
shell: bash | |
run: gosec -exclude=G204,G304 ./... |