-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (41 loc) · 1.15 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
43
44
45
46
47
48
49
name: Unit tests
on:
pull_request:
branches:
- main
- '!release/**'
push:
branches:
- main
- '!release/**'
jobs:
test-nx:
name: Any test with nx
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js and cache
uses: ./.github/actions/nodejs
- name: Test all packages
run: npm run ci:all:test
- name: Report to Codacy
uses: codacy/codacy-coverage-reporter-action@v1
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: 'coverage/packages/*/lcov.info'
- name: Report to Code Climate
uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageLocations: 'coverage/packages/*/lcov.info:lcov'
- name: Report to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: 'coverage/packages/*/lcov.info'
concurrency:
group: test-${{ github.head_ref }}
cancel-in-progress: true