File tree Expand file tree Collapse file tree 7 files changed +31
-7
lines changed Expand file tree Collapse file tree 7 files changed +31
-7
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 38
38
timeout-minutes : 5
39
39
- name : Replace all GitHub links to individual packages with npm links
40
40
run : |
41
- find . -type f -name '*.md' -print0 | xargs -0 sed -Ei 's/@stdlib\/([^:]*)\]: https:\/\/github.com\/stdlib-js/@stdlib\/\1\]: https:\/\/www.npmjs.com\/package\/@stdlib/g'
41
+ find . -type f -name '*.md' -print0 | xargs -0 sed -Ei '/tree\/main/b; s/@stdlib\/([^:]*)\]: https:\/\/github.com\/stdlib-js/@stdlib\/\1\]: https:\/\/www.npmjs.com\/package\/@stdlib/g'
42
42
- name : Replace all stdlib GitHub dependencies with the respective npm packages
43
43
run : |
44
44
find package.json -type f -print0 | xargs -0 sed -Ei 's/"github:stdlib-js[^"]*"/"^0.0.x"/g'
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 @@ -16,6 +16,7 @@ Justin Dennison <justin1dennison@gmail.com>
16
16
Marcus <mfantham@users.noreply.github.com>
17
17
Matt Cochrane <matthew.cochrane.eng@gmail.com>
18
18
Milan Raj <rajsite@users.noreply.github.com>
19
+ Momtchil Momtchev <momtchil@momtchev.com>
19
20
Ognjen Jevremović <ognjenjevremovic@users.noreply.github.com>
20
21
Philipp Burckhardt <pburckhardt@outlook.com>
21
22
Ricky Reusser <rsreusser@gmail.com>
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ limitations under the License.
20
20
21
21
# Square Root of 2
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
> [ Square root] [ @stdlib/math/base/special/sqrt ] of ` 2 ` .
26
26
@@ -82,7 +82,7 @@ console.log( SQRT2 );
82
82
83
83
## See Also
84
84
85
- - [ ` @stdlib/constants/float64/ln-two ` ] [ @stdlib/constants/float64/ln-two ] : natural logarithm of 2.
85
+ - < span class = " package-name " > [ ` @stdlib/constants/float64/ln-two ` ] [ @stdlib/constants/float64/ln-two ] </ span >< span class = " delimiter " >: </ span >< span class = " description " > natural logarithm of 2.</ span >
86
86
87
87
</section >
88
88
@@ -133,9 +133,13 @@ Copyright © 2016-2021. The Stdlib [Authors][stdlib-authors].
133
133
[ coverage-image ] : https://img.shields.io/codecov/c/github/stdlib-js/constants-float64-sqrt-two/main.svg
134
134
[ coverage-url ] : https://codecov.io/github/stdlib-js/constants-float64-sqrt-two?branch=main
135
135
136
+ <!--
137
+
136
138
[dependencies-image]: https://img.shields.io/david/stdlib-js/constants-float64-sqrt-two.svg
137
139
[dependencies-url]: https://david-dm.org/stdlib-js/constants-float64-sqrt-two/main
138
140
141
+ -->
142
+
139
143
[ chat-image ] : https://img.shields.io/gitter/room/stdlib-js/stdlib.svg
140
144
[ chat-url ] : https://gitter.im/stdlib-js/stdlib/
141
145
You can’t perform that action at this time.
0 commit comments