-
Notifications
You must be signed in to change notification settings - Fork 670
45 lines (45 loc) · 1.07 KB
/
unit-tests.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
43
44
45
name: Run unit tests
on:
pull_request:
push:
branches:
- master
env:
GO_VERSION: "1.19"
PRIORITIES": "P0"
jobs:
unit-tests:
strategy:
fail-fast: false
matrix:
component:
- datacatalog
- flyteadmin
- flytecopilot
- flyteplugins
- flytepropeller
- flytestdlib
runs-on: ubuntu-latest
defaults:
run:
working-directory: ${{ matrix.component }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}
- name: Unit Tests
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: make install && make test_unit_codecov
# TODO(monorepo): investigate how codecoverage is aggregated
- name: Push CodeCov
uses: codecov/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: coverage.txt
flags: unittests
fail_ci_if_error: false