Skip to content

Commit 6469cb6

Browse files
committed
Restructure release workflow: lint gate, then test+build per platform
Pipeline: lint (ubuntu) -> test+build per OS (5 parallel) -> release Lint failure stops early. Each platform runs its own tests before building.
1 parent 600ec42 commit 6469cb6

1 file changed

Lines changed: 13 additions & 6 deletions

File tree

.github/workflows/release.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ permissions:
1616
contents: write
1717

1818
jobs:
19-
lint-and-test:
19+
lint:
2020
runs-on: ubuntu-latest
2121
steps:
2222
- uses: actions/checkout@v4
@@ -31,11 +31,8 @@ jobs:
3131
install-mode: goinstall
3232
args: --timeout=5m
3333

34-
- name: Run tests
35-
run: go test ./...
36-
3734
build-unix:
38-
needs: [lint-and-test]
35+
needs: [lint]
3936
strategy:
4037
matrix:
4138
include:
@@ -59,6 +56,9 @@ jobs:
5956
with:
6057
go-version: "1.26"
6158

59+
- name: Run tests
60+
run: go test ./...
61+
6262
- name: Build binary
6363
run: |
6464
CGO_ENABLED=1 go build \
@@ -75,7 +75,7 @@ jobs:
7575
path: "*.tar.gz"
7676

7777
build-windows:
78-
needs: [lint-and-test]
78+
needs: [lint]
7979
runs-on: windows-latest
8080
steps:
8181
- uses: actions/checkout@v4
@@ -90,6 +90,13 @@ jobs:
9090
path-type: inherit
9191
install: mingw-w64-ucrt-x86_64-gcc
9292

93+
- name: Run tests
94+
shell: msys2 {0}
95+
run: |
96+
which go
97+
go version
98+
go test ./...
99+
93100
- name: Build binary
94101
shell: msys2 {0}
95102
run: |

0 commit comments

Comments
 (0)