-
Notifications
You must be signed in to change notification settings - Fork 3
44 lines (39 loc) · 1.3 KB
/
pr-test.yaml
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
43
44
---
name: Build and test
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
branches:
- master
push:
branches:
- master
concurrency:
group: pr-${{ github.ref }}
cancel-in-progress: true
env:
INDYKITE_APPLICATION_CREDENTIALS: ${{ secrets.APP_AGENT_CREDENTIALS }}
INDYKITE_SERVICE_ACCOUNT_CREDENTIALS: ${{ secrets.SERVICE_ACCOUNT_CREDENTIALS }}
TENANT_ID: ${{ secrets.TENANT_ID }}
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: go.mod
- name: Run Unit tests.
run: |
make test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.out
# Notify us when failed, so devs are not waiting for Codecov report when it will never come.
# Because Codecov report is required to be able to merge, we have to run again the whole test anyway.
fail_ci_if_error: true