-
Notifications
You must be signed in to change notification settings - Fork 9
76 lines (74 loc) · 2.22 KB
/
test.yaml
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: Build and Test
on:
push:
branches:
- main
- feature/**
- fix/**
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm ci
- run: npm run build
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Test - Results All
uses: ./
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
comment-title: Test - Results All
results-path: ./files/**/*.trx
allow-failed-tests: true
- name: Test - Results Success
uses: ./
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
comment-title: Test - Results Success
results-path: ./files/success/*
- name: Test - Results Fail
uses: ./
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
comment-title: Test - Results Fail
results-path: ./files/fail/*
allow-failed-tests: true
- name: Test - Coverage OpenCover
uses: ./
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
comment-title: Test - Coverage OpenCover
results-path: ./files/success/*
coverage-path: ./files/success/test_coverage_opencover.xml
coverage-threshold: 44
- name: Test - Coverage Cobertura
uses: ./
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
comment-title: Test - Coverage Cobertura
results-path: ./files/success/*
coverage-path: ./files/success/test_coverage_cobertura.xml
coverage-type: cobertura
coverage-threshold: 44
- name: Test - Show Failed Tests Only
uses: ./
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
comment-title: Test - Hide Success
results-path: ./files/**/*.trx
allow-failed-tests: true
show-failed-tests-only: true
- name: Test - Hide Test Output
uses: ./
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
comment-title: Test - Hide Output
results-path: ./files/**/test_result.trx
allow-failed-tests: true
show-test-output: false