Skip to content

Update module github.com/spf13/cobra to v1.8.1 #457

Update module github.com/spf13/cobra to v1.8.1

Update module github.com/spf13/cobra to v1.8.1 #457

Workflow file for this run

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