-
Notifications
You must be signed in to change notification settings - Fork 20
42 lines (35 loc) · 1.22 KB
/
typescript-coverage.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: Typescript coverage
on:
pull_request:
branches:
- master
- dev
concurrency:
# New commit on branch cancels running workflows of the same branch
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true
jobs:
typescript-coverage:
runs-on: ubuntu-latest
env:
# INFO: Игнорируем пакеты связанные с plasma-tokens, документацией и утилитами, т.к. в них не запускается typescript-coverage
LERNA_IGNORE_LIST: "@salutejs/plasma-{tokens*,cy-utils,sb-utils}"
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
show-progress: false
- name: Prepare environment
uses: ./.github/actions/prepare-environment
- name: Lerna bootstrap
run: npx lerna bootstrap --no-private
- name: Run Typescript Coverage
if: ${{ always() }}
run: |
npm run typescript-coverage -- --no-private --ignore=${{env.LERNA_IGNORE_LIST}}
- name: Save artifacts
if: ${{ failure() }}
uses: actions/[email protected]
with:
name: Typescript Coverage Report Artifacts
path: packages/*/coverage-ts/