Skip to content

deps(deps): bump golang.org/x/time from 0.14.0 to 0.15.0 #267

deps(deps): bump golang.org/x/time from 0.14.0 to 0.15.0

deps(deps): bump golang.org/x/time from 0.14.0 to 0.15.0 #267

Workflow file for this run

# Continuous Integration workflow
# Runs tests, linting, and build verification on all PRs and pushes
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
jobs:
lint:
name: Lint
runs-on: ubuntu-4c
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
- name: golangci-lint
uses: golangci/golangci-lint-action@v9
with:
version: latest
args: --timeout=10m
test:
name: Test
runs-on: ubuntu-4c
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
- name: Go Test Cache
uses: actions/cache@v5
with:
path: ~/.cache/go-build
key: ${{ runner.os }}-go-test-${{ hashFiles('**/*.go') }}
restore-keys: |
${{ runner.os }}-go-test-
- name: Download dependencies
run: go mod download
- name: Run tests
run: go test -v -coverprofile=coverage.out ./...
- name: Upload coverage
uses: codecov/codecov-action@v4
with:
files: ./coverage.out
fail_ci_if_error: false
continue-on-error: true
# Race detection runs separately (slower but important)
test-race:
name: Test (Race Detection)
runs-on: ubuntu-4c
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
- name: Go Test Cache (Race)
uses: actions/cache@v5
with:
path: ~/.cache/go-build
key: ${{ runner.os }}-go-test-race-${{ hashFiles('**/*.go') }}
restore-keys: |
${{ runner.os }}-go-test-race-
- name: Run tests with race detector
run: go test -race ./...
build:
name: Build
runs-on: ubuntu-4c
strategy:
matrix:
goos: [linux, darwin, windows]
goarch: [amd64, arm64]
exclude:
- goos: windows
goarch: arm64
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
- name: Go Build Cache
uses: actions/cache@v5
with:
path: ~/.cache/go-build
key: ${{ runner.os }}-go-build-${{ matrix.goos }}-${{ matrix.goarch }}-${{ hashFiles('**/*.go') }}
restore-keys: |
${{ runner.os }}-go-build-${{ matrix.goos }}-${{ matrix.goarch }}-
${{ runner.os }}-go-build-
- name: Build
env:
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
CGO_ENABLED: 0
run: |
go build -ldflags="-s -w -X main.version=ci -X main.commit=${{ github.sha }} -X main.date=$(date -u +%Y-%m-%dT%H:%M:%SZ)" -o kspec-${{ matrix.goos }}-${{ matrix.goarch }} ./cmd/kspec
goreleaser-check:
name: GoReleaser Check
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
- name: Check GoReleaser config
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: "~> v2"
args: check