Skip to content

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

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

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

Workflow file for this run

---
name: Go Test
on:
pull_request:
types:
- opened
- synchronize
- reopened
branches:
- main
env:
GO111MODULE: "on"
permissions:
contents: read
jobs:
golangci-lint:
permissions:
contents: read # for actions/checkout to fetch code
pull-requests: read # for golangci/golangci-lint-action to fetch PRs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "^1.20"
check-latest: true
- uses: golangci/golangci-lint-action@v5.3.0
with:
version: latest
args: --verbose
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# get the whole repo, not just the last commit, so
# we can compare changes on this branch to main
fetch-depth: 0
- uses: actions/setup-python@v5
- uses: pre-commit/action@v3.0.1
with:
extra_args: --from-ref origin/main --to-ref HEAD
build:
name: build & test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "^1.20"
- name: Go Build
run: make build
- name: Go Test
run: make test