File tree Expand file tree Collapse file tree 7 files changed +33
-9
lines changed Expand file tree Collapse file tree 7 files changed +33
-9
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 : ' { "coverage": ${{ steps.extract-coverage.outputs.coverage }}, "run_id": "${{ github.run_id }}" }'
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
# push
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
> Add one or more elements to the end of a collection.
26
26
@@ -153,9 +153,9 @@ console.log( arr );
153
153
154
154
## See Also
155
155
156
- - [ ` @stdlib/utils/pop ` ] [ @stdlib/utils/pop ] : remove and return the last element of a collection.
157
- - [ ` @stdlib/utils/shift ` ] [ @stdlib/utils/shift ] : remove and return the first element of a collection.
158
- - [ ` @stdlib/utils/unshift ` ] [ @stdlib/utils/unshift ] : add one or more elements to the beginning of a collection.
156
+ - < span class = " package-name " > [ ` @stdlib/utils/pop ` ] [ @stdlib/utils/pop ] </ span >< span class = " delimiter " >: </ span >< span class = " description " > remove and return the last element of a collection.</ span >
157
+ - < span class = " package-name " > [ ` @stdlib/utils/shift ` ] [ @stdlib/utils/shift ] </ span >< span class = " delimiter " >: </ span >< span class = " description " > remove and return the first element of a collection.</ span >
158
+ - < span class = " package-name " > [ ` @stdlib/utils/unshift ` ] [ @stdlib/utils/unshift ] </ span >< span class = " delimiter " >: </ span >< span class = " description " > add one or more elements to the beginning of a collection.</ span >
159
159
160
160
</section >
161
161
@@ -206,9 +206,13 @@ Copyright © 2016-2021. The Stdlib [Authors][stdlib-authors].
206
206
[ coverage-image ] : https://img.shields.io/codecov/c/github/stdlib-js/utils-push/main.svg
207
207
[ coverage-url ] : https://codecov.io/github/stdlib-js/utils-push?branch=main
208
208
209
+ <!--
210
+
209
211
[dependencies-image]: https://img.shields.io/david/stdlib-js/utils-push.svg
210
212
[dependencies-url]: https://david-dm.org/stdlib-js/utils-push/main
211
213
214
+ -->
215
+
212
216
[ chat-image ] : https://img.shields.io/gitter/room/stdlib-js/stdlib.svg
213
217
[ chat-url ] : https://gitter.im/stdlib-js/stdlib/
214
218
You can’t perform that action at this time.
0 commit comments