From 797666200e70c508ee27d36cb980d24929030c1a Mon Sep 17 00:00:00 2001 From: Zeno Belli Date: Thu, 18 Dec 2025 20:45:20 +0100 Subject: [PATCH 1/6] ci: split go and devenv tests --- .github/workflows/codeChecks.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/codeChecks.yml b/.github/workflows/codeChecks.yml index e4c02f8..27ca2be 100644 --- a/.github/workflows/codeChecks.yml +++ b/.github/workflows/codeChecks.yml @@ -13,8 +13,7 @@ on: jobs: - code_checks: - + go_tests: runs-on: ubuntu-latest strategy: max-parallel: 1 @@ -46,6 +45,11 @@ jobs: go-package: ./... work-dir: . + devenv_tests: + needs: go_tests + runs-on: ubuntu-latest + + steps: - uses: cachix/install-nix-action@v31 with: github_access_token: ${{ secrets.GITHUB_TOKEN }} From c609df542bc37dca9f6b4832042efd32dc32cbb2 Mon Sep 17 00:00:00 2001 From: Zeno Belli Date: Thu, 18 Dec 2025 20:48:02 +0100 Subject: [PATCH 2/6] ci: add checkout step to devenv tests --- .github/workflows/codeChecks.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/codeChecks.yml b/.github/workflows/codeChecks.yml index 27ca2be..9787e0a 100644 --- a/.github/workflows/codeChecks.yml +++ b/.github/workflows/codeChecks.yml @@ -50,6 +50,9 @@ jobs: runs-on: ubuntu-latest steps: + - name: Checkout + uses: actions/checkout@v5 + - uses: cachix/install-nix-action@v31 with: github_access_token: ${{ secrets.GITHUB_TOKEN }} From ef1571ababfcf6142f7563fb2bfe8e76aeba7eee Mon Sep 17 00:00:00 2001 From: Zeno Belli Date: Thu, 18 Dec 2025 20:56:56 +0100 Subject: [PATCH 3/6] ci: test goreleaser snapshot job --- .github/workflows/codeChecks.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/.github/workflows/codeChecks.yml b/.github/workflows/codeChecks.yml index 9787e0a..86c0baa 100644 --- a/.github/workflows/codeChecks.yml +++ b/.github/workflows/codeChecks.yml @@ -67,3 +67,33 @@ jobs: - 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 From 9ff2c587a86613d0f0b29e6580c56a07f4d789e7 Mon Sep 17 00:00:00 2001 From: Zeno Belli Date: Thu, 18 Dec 2025 21:01:21 +0100 Subject: [PATCH 4/6] ci: update goreleaser test --- .github/workflows/codeChecks.yml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/codeChecks.yml b/.github/workflows/codeChecks.yml index 86c0baa..1576d41 100644 --- a/.github/workflows/codeChecks.yml +++ b/.github/workflows/codeChecks.yml @@ -45,7 +45,7 @@ jobs: go-package: ./... work-dir: . - devenv_tests: + devenv_test: needs: go_tests runs-on: ubuntu-latest @@ -69,7 +69,7 @@ jobs: timeout-minutes: 15 goreleaser_test: - needs: devenv_tests + needs: devenv_test runs-on: ubuntu-latest steps: @@ -86,14 +86,9 @@ jobs: with: go-version: '1.25' - - name: Run GoReleaser + - name: Run GoReleaser test uses: goreleaser/goreleaser-action@v6 with: version: "~> 2" - args: release --clean + args: release --snapshot --clean workdir: . - env: - GITHUB_TOKEN: ${{ secrets.GH_GORELEASER_TOKEN }} - - - name: Refresh Go Report Card - uses: creekorful/goreportcard-action@v1.0 From be0d4480cb331fb6b123c4f9f8eb315adb8dd74f Mon Sep 17 00:00:00 2001 From: Zeno Belli Date: Thu, 18 Dec 2025 21:08:11 +0100 Subject: [PATCH 5/6] fix: go test command in goreleaser conf --- .goreleaser.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index defafb0..5293e8a 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -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' From 37fc67068a01062eb4636244d35a0675b12ab522 Mon Sep 17 00:00:00 2001 From: Zeno Belli Date: Thu, 18 Dec 2025 21:10:12 +0100 Subject: [PATCH 6/6] ci: run code checks on gorelease conf update --- .github/workflows/codeChecks.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/codeChecks.yml b/.github/workflows/codeChecks.yml index 1576d41..55d4230 100644 --- a/.github/workflows/codeChecks.yml +++ b/.github/workflows/codeChecks.yml @@ -4,6 +4,7 @@ on: push: paths: - ".github/workflows/codeChecks.yml" + - ".goreleaser.yaml" - "devenv.*" - "cmd/**" - "internal/**"