Skip to content

Commit be3117d

Browse files
initial commit
1 parent ca619cb commit be3117d

File tree

1 file changed

+16
-33
lines changed

1 file changed

+16
-33
lines changed

.github/workflows/go.yml

Lines changed: 16 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,27 @@
1-
name: Build and Publish Golang App
1+
name: Test Go Version
22

33
on:
44
push:
5-
branches: [ main ]
6-
pull_request:
7-
branches: [ main ]
5+
branches:
6+
- test-540
87

98
jobs:
10-
build:
11-
runs-on: ubuntu-latest
9+
test-go-version:
10+
strategy:
11+
matrix:
12+
os: [ubuntu-latest, windows-latest, macos-latest]
13+
14+
runs-on: ${{ matrix.os }}
1215

1316
steps:
14-
- uses: actions/checkout@v3
17+
- name: Checkout repository
18+
uses: actions/checkout@v3
1519

1620
- name: Set up Go
17-
uses: priya-kinthali/setup-go@poc-build
21+
uses: actions/setup-go@v5
1822
with:
19-
go-version: '1.20'
20-
21-
- name: Build the application
22-
run: go build -v ./...
23-
24-
- name: Upload artifact
25-
uses: actions/upload-artifact@v3
26-
with:
27-
name: golang-app
28-
path: ./
29-
30-
publish:
31-
needs: build
32-
runs-on: ubuntu-latest
23+
go-version: 1.23
24+
check-latest: true
3325

34-
steps:
35-
- name: Download artifact
36-
uses: actions/download-artifact@v3
37-
with:
38-
name: golang-app
39-
path: ./
40-
41-
- name: Publish
42-
uses: goreleaser/goreleaser-action@v2
43-
with:
44-
args: release --rm-dist
26+
- name: Verify Go version
27+
run: go version

0 commit comments

Comments
 (0)