Skip to content

Commit

Permalink
Merge pull request cesanta#289 from techknowlogick/github_actions-go_…
Browse files Browse the repository at this point in the history
…tests

Add Github actions for go tests
  • Loading branch information
rojer authored Oct 3, 2020
2 parents 2364d5f + 30840d6 commit a0cff49
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/go_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
on: [push, pull_request]
name: Test
jobs:
test:
strategy:
matrix:
go-version: [1.13.x, 1.14.x, 1.15.x]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Install deps
run: |
python -m pip install --upgrade pip
pip install GitPython
cd auth_server
python gen_version.py
- name: Test
run: |
cd auth_server
go test ./...
- name: Build
run: |
cd auth_server
make

0 comments on commit a0cff49

Please sign in to comment.