Skip to content

Commit 572f006

Browse files
authored
Merge pull request #3 from rtmelsov/rtmelsov-patch-2
Create ci.yml
2 parents 85d71c9 + 3af987e commit 572f006

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: CI (build & test)
2+
on:
3+
pull_request:
4+
push:
5+
branches: [main]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- uses: actions/setup-go@v5
13+
with: { go-version: '1.25' }
14+
- run: go test ./...
15+
- run: |
16+
mkdir -p dist
17+
go build -o dist/server ./cmd/server
18+
- uses: actions/upload-artifact@v4
19+
with:
20+
name: server-linux-amd64
21+
path: dist/server

0 commit comments

Comments
 (0)