Skip to content

build(deps): bump github.com/spf13/cobra from 1.8.0 to 1.8.1 #212

build(deps): bump github.com/spf13/cobra from 1.8.0 to 1.8.1

build(deps): bump github.com/spf13/cobra from 1.8.0 to 1.8.1 #212

Workflow file for this run

name: Build & Test
# this is triggered on push to the repository
on: [push, pull_request]
jobs:
build:
name: "Build"
strategy:
matrix:
go-version: [1.20.x]
platform: [ubuntu-latest, macos-latest, windows-latest]
fail-fast: true
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v4
- name: Build
run: go build ./...
test:
name: "Unit Tests"
needs: [build]
strategy:
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
fail-fast: true
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.20.x
- name: Test
run: go test -failfast ./... -race -coverprofile=coverage.txt -covermode=atomic
- name: Push Coverage to codecov.io
uses: codecov/codecov-action@v5.0.7
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.txt