-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (31 loc) · 992 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Test
on: [push]
jobs:
test:
strategy:
matrix:
go-version: [1.13.x]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: DB Up
run: cd docker/test/ && sudo apt-get install mysql-client -y && docker-compose up -d
- name: Install Go
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go-version }}
- name: Decrypt Secrets
run: ./server/etc/secrets/decrypt.sh
env:
LARGE_SECRET_PASSPHRASE: ${{ secrets.LARGE_SECRET_PASSPHRASE }}
- name: Test
run: cd server/ && go test server...
# - name: Test with Codecov
# run: cd server/ && go test server... --coverprofile=coverage.txt -covermode=atomic
# - uses: codecov/codecov-action@v1
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# flags: unittests
# name: codecov-umbrella