Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 35 additions & 2 deletions .github/workflows/codeChecks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
paths:
- ".github/workflows/codeChecks.yml"
- ".goreleaser.yaml"
- "devenv.*"
- "cmd/**"
- "internal/**"
Expand All @@ -13,8 +14,7 @@ on:

jobs:

code_checks:

go_tests:
runs-on: ubuntu-latest
strategy:
max-parallel: 1
Expand Down Expand Up @@ -46,6 +46,14 @@ jobs:
go-package: ./...
work-dir: .

devenv_test:
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 }}
Expand All @@ -60,3 +68,28 @@ jobs:
- name: Build the devenv shell and run any pre-commit hooks
run: devenv test
timeout-minutes: 15

goreleaser_test:
needs: devenv_test
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 test
uses: goreleaser/goreleaser-action@v6
with:
version: "~> 2"
args: release --snapshot --clean
workdir: .
2 changes: 1 addition & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ before:
hooks:
- go mod download
- go mod tidy
- go test
- go test ./...
- rm -rf completions
- mkdir completions
- sh -c 'go run . completion bash > completions/https-wrench.bash'
Expand Down
Loading