-
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (41 loc) · 1.13 KB
/
test.yml
File metadata and controls
50 lines (41 loc) · 1.13 KB
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
name: Tests validation
on:
pull_request:
types: [opened, synchronize, reopened]
push:
branches:
- main
jobs:
build-validation:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v6
- name: Enable Corepack
run: corepack enable
- name: Use Node LTS version
uses: actions/setup-node@v6
with:
cache: yarn
node-version: 24
- name: Install dependencies
run: yarn install --immutable
- name: Run tests
run: yarn coverage
- name: Coverage summary
uses: irongut/CodeCoverageSummary@v1.3.0
if: github.event_name == 'pull_request'
with:
filename: coverage/cobertura-coverage.xml
badge: true
fail_below_min: true
format: markdown
hide_branch_rate: false
indicators: true
output: both
- name: Add Coverage PR Comment
uses: marocchino/sticky-pull-request-comment@v3.0.2
if: github.event_name == 'pull_request'
with:
recreate: true
path: code-coverage-results.md