Bump github.com/spf13/cobra from 1.6.1 to 1.7.0 #151
Workflow file for this run
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
name: "Go CI" | |
on: | |
push: | |
branches: | |
- master | |
- develop | |
pull_request: | |
branches: | |
- "**" | |
jobs: | |
build: | |
name: CI build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.17.x | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Build project | |
run: go build . | |
- name: Test with coverage | |
run: go test -v -coverprofile=coverage.txt -covermode=atomic ./... | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v1 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Run linters | |
uses: golangci/golangci-lint-action@v2 | |
with: | |
version: latest | |
multiplat-tests: | |
name: Test in other platforms | |
strategy: | |
matrix: | |
go-version: [1.17.x] | |
platform: [macos-latest, windows-latest] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- name: Install Go | |
if: success() | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Run tests | |
run: go test -v ./... |