Skip to content

Commit ed98ceb

Browse files
committed
feat: updating go version and goreleaser check
1 parent 676308c commit ed98ceb

File tree

2 files changed

+34
-8
lines changed

2 files changed

+34
-8
lines changed

.github/workflows/go.yml

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
name: Go
2-
1+
name: Build
32
on:
43
push:
54
branches:
@@ -8,22 +7,37 @@ on:
87
branches:
98
- "*"
109

10+
permissions:
11+
contents: read
12+
packages: read
13+
id-token: read
14+
issues: read
15+
1116
jobs:
1217
build:
1318
runs-on: ubuntu-latest
19+
permissions:
20+
contents: read
21+
id-token: read
22+
packages: read
1423
steps:
15-
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
24+
- name: Checkout
25+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
26+
with:
27+
fetch-depth: 1
1628

17-
- name: Set up Go
29+
- name: Setup Go
1830
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
1931
with:
20-
go-version: 1.22
32+
go-version: '1.24'
33+
go-version-file: 'go.mod'
34+
cache-dependency-path: 'go.sum'
2135

2236
- name: Generate
2337
run: go generate -v ./...
2438

25-
- name: Build
39+
- name: Build Test
2640
run: go build -v ./...
2741

28-
- name: Test
29-
run: go test -v ./...
42+
- name: Unit Test
43+
run: go test -v ./...

.github/workflows/goreleaser.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,18 @@ jobs:
6767
sudo rm -rf /usr/local/lib/android || true
6868
df -h
6969
70+
- name: GoReleaser Check
71+
uses: goreleaser/goreleaser-action@e435ccd777264be153ace6237001ef4d979d3a7a # v6.4.0
72+
with:
73+
distribution: goreleaser
74+
version: "~> v2"
75+
args: release check
76+
env:
77+
AUR_KEY: ${{ secrets.AUR_SSH_KEY }}
78+
GITHUB_TOKEN: ${{ secrets.GORELEASER_TOKEN }}
79+
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_LOGIN }}
80+
CHOCOLATEY_API_KEY: ${{ secrets.CHOCOLATEY_API_KEY }}
81+
7082
- name: Run GoReleaser
7183
uses: goreleaser/goreleaser-action@e435ccd777264be153ace6237001ef4d979d3a7a # v6.4.0
7284
with:

0 commit comments

Comments
 (0)