-
Notifications
You must be signed in to change notification settings - Fork 11
50 lines (40 loc) · 1.05 KB
/
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
name: Tests
on:
pull_request:
push:
branches:
- '**'
jobs:
build:
name: Build and test CryptOpt
runs-on: ubuntu-22.04
steps:
- uses: 0xADE1A1DE/AssemblyLine@main
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: actions/setup-node@v3
with:
node-version: 16
- name: TS build
run: make build
- name: TS checks
run: npm run test-cov
- name: Code Coverage Summary
if: ${{ github.actor != 'dependabot[bot]' }}
uses: irongut/[email protected]
with:
badge: true
format: markdown
output: both
filename: ./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