Skip to content

Commit 3f11ef1

Browse files
committed
autotests
1 parent 0fc9ef0 commit 3f11ef1

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/tests.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Go
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
go-version: [1.24.x]
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Setup Go
17+
uses: actions/setup-go@v5
18+
with:
19+
go-version: '1.24.x'
20+
21+
- name: Display Go version
22+
run: go version
23+
24+
- name: Install dependencies
25+
run: go mod tidy
26+
27+
- name: Run local server
28+
run: |
29+
CGO_ENABLED=0 GOOS=linux go run main.go &
30+
sleep 100
31+
go test -run ^TestApp$ ./tests
32+
33+

0 commit comments

Comments
 (0)