Skip to content

Bump github.com/spf13/cobra from 1.9.1 to 1.10.1 #19

Bump github.com/spf13/cobra from 1.9.1 to 1.10.1

Bump github.com/spf13/cobra from 1.9.1 to 1.10.1 #19

Workflow file for this run

name: Go Build
permissions:
contents: read
on:
pull_request:
branches: [ main ]
push:
branches: [ main ]
env:
GO_VERSION: '1.24'
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Set up Go
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5
with:
go-version: ${{ env.GO_VERSION }}
- name: Install golangci-lint
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9
with:
version: latest
- name: Lint
run: golangci-lint run
- name: Format Check
run: |
go fmt ./...
if [ -n "$(git diff)" ]; then
echo "Code is not properly formatted. Please run 'go fmt ./...'"
exit 1
fi
build-and-test:
name: Build and Test
needs: lint
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Set up Go
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5
with:
go-version: ${{ env.GO_VERSION }}
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...