Skip to content

Commit 30840d6

Browse files
Add Github actions for go tests
1 parent 2364d5f commit 30840d6

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/go_test.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
on: [push, pull_request]
2+
name: Test
3+
jobs:
4+
test:
5+
strategy:
6+
matrix:
7+
go-version: [1.13.x, 1.14.x, 1.15.x]
8+
os: [ubuntu-latest]
9+
runs-on: ${{ matrix.os }}
10+
steps:
11+
- name: Install Go
12+
uses: actions/setup-go@v2
13+
with:
14+
go-version: ${{ matrix.go-version }}
15+
- name: Checkout code
16+
uses: actions/checkout@v2
17+
- name: Install deps
18+
run: |
19+
python -m pip install --upgrade pip
20+
pip install GitPython
21+
cd auth_server
22+
python gen_version.py
23+
- name: Test
24+
run: |
25+
cd auth_server
26+
go test ./...
27+
- name: Build
28+
run: |
29+
cd auth_server
30+
make

0 commit comments

Comments
 (0)