Skip to content

ci: test goreleaser snapshot job #48

ci: test goreleaser snapshot job

ci: test goreleaser snapshot job #48

Workflow file for this run

---
name: CodeChecks
on:
push:
paths:
- ".github/workflows/codeChecks.yml"
- "devenv.*"
- "cmd/**"
- "internal/**"
- "pkg/**"
- "*.go"
- "go.*"
jobs:
go_tests:
runs-on: ubuntu-latest
strategy:
max-parallel: 1
matrix:
go-version: ['1.24', '1.25']
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Setup Go
uses: actions/setup-go@v6
with:
go-version: ${{ matrix.go-version }}
- name: Install dependencies
run: go get .
- name: Build
run: go build -v ./...
- name: Test with the Go CLI
run: go test -v ./...
- name: Check for vulnerabilities
uses: golang/govulncheck-action@v1
with:
go-version-input: ${{ matrix.go-version }}
go-package: ./...
work-dir: .
devenv_tests:
needs: go_tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
- uses: cachix/install-nix-action@v31
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: cachix/cachix-action@v16
with:
name: devenv
- name: Install devenv.sh
run: nix profile add nixpkgs#devenv
- name: Build the devenv shell and run any pre-commit hooks
run: devenv test
timeout-minutes: 15
goreleaser_test:
needs: devenv_tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: '1.25'
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
version: "~> 2"
args: release --clean
workdir: .
env:
GITHUB_TOKEN: ${{ secrets.GH_GORELEASER_TOKEN }}
- name: Refresh Go Report Card
uses: creekorful/goreportcard-action@v1.0