Skip to content

Commit b55f356

Browse files
committed
chrore: add tests in actions
1 parent 73047b9 commit b55f356

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/release.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,19 @@ on:
66
- "v[0-9]+.[0-9]+.[0-9]+*"
77

88
jobs:
9+
run-tests:
10+
name: Run tests
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
- name: Set up Go
15+
uses: actions/setup-go@v3
16+
with:
17+
go-version: 1.21
18+
- name: Run tests
19+
run: go test ./...
920
update-changelog:
21+
needs: run-tests
1022
name: Create release
1123
runs-on: ubuntu-latest
1224
steps:
@@ -29,6 +41,7 @@ jobs:
2941
file_pattern: CHANGELOG.md
3042

3143
releases-matrix:
44+
needs: run-tests
3245
name: Release Go Binary
3346
runs-on: ubuntu-latest
3447
strategy:

0 commit comments

Comments
 (0)