-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (40 loc) · 1.11 KB
/
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
39
40
41
42
name: Test
on:
push:
branches: ["*"]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Get go version from go.mod
run: |
echo "GO_VERSION=$(grep '^go ' go.mod | cut -d " " -f 2)" >> $GITHUB_ENV
- name: Setup go version
uses: actions/setup-go@v4
with:
go-version-file: go.mod
- name: Write feature keys
run: |
echo "$FEATURESV1" > /tmp/featuresv1.conf
echo "$FEATURESV2" > /tmp/featuresv2.conf
env:
FEATURESV1 : ${{secrets.FEATURES_V1}}
FEATURESV2 : ${{secrets.FEATURES_V2}}
- name: Run tests
run: |
make coverage
env:
FEATKEY_DIR : /tmp
ASC_DOCKER_USER : ${{secrets.DOCKER_USER}}
ASC_DOCKER_PASS : ${{secrets.DOCKER_PASS}}
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{secrets.CODECOV_TOKEN}}
files: testdata/coverage/total.cov
verbose: false