forked from ArtiomTr/jest-coverage-report-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
39 lines (39 loc) · 1.44 KB
/
action.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
name: 'Jest coverage report'
description: 'Track your code coverage in each pull request.'
author: 'Artiom Tretjakovas <artiom.tretjakovas2@gmail.com>'
branding:
icon: 'activity'
color: 'gray-dark'
inputs:
github-token:
required: true
description: 'A github access token'
test-script:
required: false
description: 'A custom npm script to get coverage'
default: npx jest --silent --ci --coverage --testLocationInResults --json --outputFile="report.json"
threshold:
required: false
description: 'Coverage threshold. If total coverage is less than threshold, PR will be rejected'
working-directory:
required: false
description: 'Custom working directory'
icons:
required: false
description: 'Which icons to use. Available choices: emoji, ascii'
default: emoji
annotations:
required: false
description: 'What type of annotations show. Options: none, coverage, failed-tests, all'
default: all
package-manager:
required: false
description: 'Which package manager to use; can be either `npm` or `yarn`'
default: 'npm'
skip-step:
required: false
description: '`none` for running all steps, `install` to skip installing dependencies or `all` to skip installing dependencies and running the test script'
default: 'none'
runs:
using: 'node12'
main: 'dist/index.js'