Skip to content

Commit d91e053

Browse files
committed
added test github action
1 parent e0ec2bf commit d91e053

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/tests.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# This workflow will build a golang project
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
3+
4+
name: Test
5+
6+
on:
7+
push:
8+
branches:
9+
- "*"
10+
pull_request:
11+
branches:
12+
- "*"
13+
14+
jobs:
15+
RunTest:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Set up Go
21+
uses: actions/setup-go@v4
22+
with:
23+
go-version: "1.20"
24+
25+
- name: Launch Test Server (todo)
26+
run: go run test_api/todo/server.go
27+
28+
- name: Launch Cache Server
29+
run: go run main.go
30+
31+
- name: Run Test
32+
run: go test -v ./...

0 commit comments

Comments
 (0)