-
Notifications
You must be signed in to change notification settings - Fork 3
54 lines (44 loc) · 1.21 KB
/
ts-check.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
50
51
52
53
54
name: ts tests
on:
pull_request:
push:
branches:
- main
- dev
jobs:
build:
name: Build and test Measuresuite
runs-on: ubuntu-latest
steps:
- uses: 0xADE1A1DE/AssemblyLine@main
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Install dependencies
run: sudo apt install -y lcov python3 python3-pip
- run: pip3 install plotly lcov_cobertura
- uses: actions/setup-node@v3
with:
node-version: 18
- name: TS build
run: npm clean-install
- name: TS checks
run: npm run test-cov
- name: Code Coverage Summary
if: ${{ github.actor != 'dependabot[bot]' }}
uses: irongut/CodeCoverageSummary@v1.2.0
with:
badge: true
format: markdown
output: both
filename: ./ts/coverage/cobertura-coverage.xml
- uses: jwalton/gh-find-current-pr@v1
if: ${{ github.actor != 'dependabot[bot]' }}
id: finder
- name: Add Coverage PR Comment
if: ${{ github.actor != 'dependabot[bot]' }}
uses: marocchino/sticky-pull-request-comment@v2
with:
number: ${{ steps.finder.outputs.pr }}
recreate: true
path: code-coverage-results.md