File tree Expand file tree Collapse file tree 5 files changed +28
-5
lines changed Expand file tree Collapse file tree 5 files changed +28
-5
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,10 @@ indent_style = tab
45
45
indent_style = space
46
46
indent_size = 2
47
47
48
+ # Set properties for `cli_opts.json` files:
49
+ [cli_opts.json ]
50
+ indent_style = tab
51
+
48
52
# Set properties for TypeScript files:
49
53
[* .ts ]
50
54
indent_style = tab
Original file line number Diff line number Diff line change 53
53
id : tests
54
54
run : |
55
55
npm test || npm test || npm test
56
- - uses : act10ns/slack@v1
56
+ - name : Send status to Slack channel in case of failure
57
+ uses : act10ns/slack@v1
57
58
with :
58
59
status : ${{ job.status }}
59
60
steps : ${{ toJson(steps) }}
Original file line number Diff line number Diff line change @@ -51,14 +51,26 @@ jobs:
51
51
timeout-minutes : 15
52
52
- name : Upload coverage to Codecov
53
53
id : upload
54
- uses : codecov/codecov-action@v1
54
+ uses : codecov/codecov-action@v2
55
55
with :
56
56
directory : reports/coverage
57
57
flags : unittests
58
58
fail_ci_if_error : true
59
+ - name : Extract coverage value and assign to output
60
+ id : extract-coverage
61
+ run : |
62
+ coverage=`cat reports/coverage/lcov-report/index.html | grep "fraction" | grep -oP '\d+/\d+' | printf %s "$(cat)" | jq -R -s -c 'split("\n")'`
63
+ echo "::set-output name=coverage::$coverage"
59
64
- uses : act10ns/slack@v1
60
65
with :
61
66
status : ${{ job.status }}
62
67
steps : ${{ toJson(steps) }}
63
68
channel : ' #npm-ci'
64
69
if : failure()
70
+ - name : Send Webhook with status to stdlib backend
71
+ uses : distributhor/workflow-webhook@v2
72
+ env :
73
+ webhook_url : ${{ secrets.STDLIB_COVERAGE_URL }}
74
+ webhook_secret : ${{ secrets.STDLIB_WEBHOOK_SECRET }}
75
+ data : ' ${{ steps.extract-coverage.outputs.coverage }}'
76
+ if : ${{ false }}
Original file line number Diff line number Diff line change 27
27
workflow_run :
28
28
workflows : ["Publish Package"]
29
29
types : [completed]
30
+ workflow_dispatch :
30
31
31
32
# Workflow jobs:
32
33
jobs :
33
34
on-success :
34
35
runs-on : ubuntu-latest
35
36
env :
36
37
SLACK_WEBHOOK_URL : ${{ secrets.SLACK_WEBHOOK_URL }}
37
- if : ${{ github.event.workflow_run.conclusion == 'success' }}
38
+ if : ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}
38
39
steps :
39
40
- uses : actions/checkout@v2
40
41
- uses : actions/setup-node@v2
45
46
run : |
46
47
npm install --only=prod || npm install --only=prod || npm install --only=prod
47
48
timeout-minutes : 15
48
- - uses : act10ns/slack@v1
49
+ - name : Send notification to Slack in case of failure
50
+ uses : act10ns/slack@v1
49
51
with :
50
52
status : ${{ job.status }}
51
53
steps : ${{ toJson(steps) }}
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ limitations under the License.
20
20
21
21
# countByAsync
22
22
23
- [ ![ NPM version] [ npm-image ]] [ npm-url ] [ ![ Build Status] [ test-image ]] [ test-url ] [ ![ Coverage Status] [ coverage-image ]] [ coverage-url ] [ ![ dependencies] [ dependencies-image ]] [ dependencies-url ]
23
+ [ ![ NPM version] [ npm-image ]] [ npm-url ] [ ![ Build Status] [ test-image ]] [ test-url ] [ ![ Coverage Status] [ coverage-image ]] [ coverage-url ] <!-- [![dependencies][dependencies-image]][dependencies-url] -->
24
24
25
25
> Group values according to an indicator function and return group counts.
26
26
@@ -448,9 +448,13 @@ Copyright © 2016-2021. The Stdlib [Authors][stdlib-authors].
448
448
[coverage-image]: https:// img.shields.io/codecov/c/github/stdlib-js/utils-async-count-by/main.svg
449
449
[coverage-url]: https:// codecov.io/github/stdlib-js/utils-async-count-by?branch=main
450
450
451
+ <!--
452
+
451
453
[dependencies-image]: https:// img.shields.io/david/stdlib-js/utils-async-count-by.svg
452
454
[dependencies-url]: https:// david-dm.org/stdlib-js/utils-async-count-by/main
453
455
456
+ -->
457
+
454
458
[chat-image]: https:// img.shields.io/gitter/room/stdlib-js/stdlib.svg
455
459
[chat-url]: https:// gitter.im/stdlib-js/stdlib/
456
460
You can’t perform that action at this time.
0 commit comments