Update module github.com/spf13/cobra to v1.8.1 #457
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: ci | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup golang | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.19 | |
- name: Install dependencies | |
run: go mod download | |
- name: Run check | |
run: go vet ./... | |
- name: Run build | |
run: go build cmd/ssh-provision/ssh-provision.go | |
- name: Run test | |
run: go test -race -coverprofile=coverage.out -covermode=atomic ./... | |
- name: Upload coverage | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
file: ./coverage.out | |
fail_ci_if_error: true |