Skip to content

Commit 4ae723c

Browse files
committed
add golang github workflow
1 parent 9167842 commit 4ae723c

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

.github/workflows/go.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Go
2+
3+
on:
4+
push:
5+
branches: [ "2024-update" ]
6+
pull_request:
7+
branches: [ "2024-update" ]
8+
9+
jobs:
10+
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Set up Go
17+
uses: actions/setup-go@v4
18+
with:
19+
go-version: '1.22'
20+
21+
- name: Build
22+
run: go version

up.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1153,3 +1153,10 @@ tasks:
11531153
do: |
11541154
curl --silent 'https://api.github.com/repos/upcmd/up' -H 'Accept: application/vnd.github.preview' | grep stargazers_count
11551155
reg: result
1156+
1157+
1158+
- name: Build
1159+
run: go build -v ./...
1160+
1161+
- name: Test
1162+
run: go test -v ./...

0 commit comments

Comments
 (0)