Skip to content

chore(deps): bump github.com/jedib0t/go-pretty/v6 (#36) #119

chore(deps): bump github.com/jedib0t/go-pretty/v6 (#36)

chore(deps): bump github.com/jedib0t/go-pretty/v6 (#36) #119

Workflow file for this run

name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
permissions:
contents: read
jobs:
lint:
name: Lint
runs-on: blacksmith-2vcpu-ubuntu-2404
steps:
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Set up Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version-file: go.mod
cache: true
- name: golangci-lint
uses: golangci/golangci-lint-action@82606bf257cbaff209d206a39f5134f0cfbfd2ee # v9.2.1
with:
version: latest
test:
name: Test
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [blacksmith-2vcpu-ubuntu-2404, macos-latest, windows-latest]
go: ['1.25']
steps:
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Set up Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version: ${{ matrix.go }}
- name: Download dependencies
run: go mod download
- name: Run tests (Unix)
if: runner.os != 'Windows'
run: go test -v -race -coverprofile=coverage.out ./...
- name: Run tests (Windows)
if: runner.os == 'Windows'
run: go test -v -race ./...
- name: Upload coverage
if: matrix.os == 'blacksmith-2vcpu-ubuntu-2404'
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
with:
files: ./coverage.out
flags: unittests
fail_ci_if_error: false
# Summary job for matrix test runs. GitHub requires a single check for branch protection,
# but matrix jobs create multiple checks. This job provides a single "Check Tests Passed"
# status that succeeds only if all matrix test jobs succeed.
validate-tests-passed:
name: Check Tests Passed
runs-on: blacksmith-2vcpu-ubuntu-2404
needs: test
if: always()
steps:
- name: Check test matrix status
if: needs.test.result != 'success'
run: exit 1
build:
name: Build
runs-on: blacksmith-2vcpu-ubuntu-2404
needs: [lint, test]
steps:
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Set up Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version-file: go.mod
cache: true
- name: Build
run: make build-all
- name: Verify binary
run: ./bin/rootly version