Skip to content

Commit f3c0820

Browse files
committed
- Update workflow
1 parent 29680e3 commit f3c0820

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/release.yaml

+27
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,24 @@ on:
77
workflow_dispatch:
88

99
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
with:
16+
fetch-depth: 0
17+
18+
- name: Set up Go
19+
uses: actions/setup-go@v5
20+
with:
21+
go-version: '1.23.4'
22+
23+
- name: Run Tests
24+
run: go test -v ./...
25+
1026
goreleaser:
27+
needs: test
1128
runs-on: ubuntu-latest
1229
steps:
1330
- name: Checkout
@@ -33,9 +50,19 @@ jobs:
3350
version: latest
3451
env:
3552
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
53+
3654
docker:
55+
needs: test
3756
runs-on: ubuntu-latest
3857
steps:
58+
- name: Checkout
59+
uses: actions/checkout@v4
60+
61+
- name: Set up Docker Buildx
62+
uses: docker/setup-buildx-action@v3
63+
with:
64+
driver: docker-container
65+
3966
- name: Log in to GitHub Container Registry
4067
uses: docker/login-action@v3
4168
with:

0 commit comments

Comments
 (0)