Skip to content

Commit 453d179

Browse files
committed
Auto-generated commit
1 parent 65c2470 commit 453d179

File tree

7 files changed

+50
-6
lines changed

7 files changed

+50
-6
lines changed

.editorconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ indent_style = tab
4545
indent_style = space
4646
indent_size = 2
4747

48+
# Set properties for `cli_opts.json` files:
49+
[cli_opts.json]
50+
indent_style = tab
51+
4852
# Set properties for TypeScript files:
4953
[*.ts]
5054
indent_style = tab

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
timeout-minutes: 5
3939
- name: Replace all GitHub links to individual packages with npm links
4040
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'
4242
- name: Replace all stdlib GitHub dependencies with the respective npm packages
4343
run: |
4444
find package.json -type f -print0 | xargs -0 sed -Ei 's/"github:stdlib-js[^"]*"/"^0.0.x"/g'

.github/workflows/test.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,17 @@ jobs:
4444
run: |
4545
npm install || npm install || npm install
4646
timeout-minutes: 15
47+
- name: Build native add-on (if present)
48+
run: |
49+
if [ -f "binding.gyp" ]; then
50+
npm install node-gyp --no-save && ./node_modules/.bin/node-gyp rebuild
51+
fi
4752
- name: Run tests
4853
id: tests
4954
run: |
5055
npm test || npm test || npm test
51-
- uses: act10ns/slack@v1
56+
- name: Send status to Slack channel in case of failure
57+
uses: act10ns/slack@v1
5258
with:
5359
status: ${{ job.status }}
5460
steps: ${{ toJson(steps) }}

.github/workflows/test_coverage.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,20 +40,37 @@ jobs:
4040
run: |
4141
npm install || npm install || npm install
4242
timeout-minutes: 15
43+
- name: Build native add-on (if present)
44+
run: |
45+
if [ -f "binding.gyp" ]; then
46+
npm install node-gyp --no-save && ./node_modules/.bin/node-gyp rebuild
47+
fi
4348
- name: Calculate test coverage
4449
run: |
4550
npm run test-cov || npm run test-cov || npm run test-cov
4651
timeout-minutes: 15
4752
- name: Upload coverage to Codecov
4853
id: upload
49-
uses: codecov/codecov-action@v1
54+
uses: codecov/codecov-action@v2
5055
with:
5156
directory: reports/coverage
5257
flags: unittests
5358
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"
5464
- uses: act10ns/slack@v1
5565
with:
5666
status: ${{ job.status }}
5767
steps: ${{ toJson(steps) }}
5868
channel: '#npm-ci'
5969
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 }}

.github/workflows/test_install.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,15 @@ on:
2727
workflow_run:
2828
workflows: ["Publish Package"]
2929
types: [completed]
30+
workflow_dispatch:
3031

3132
# Workflow jobs:
3233
jobs:
3334
on-success:
3435
runs-on: ubuntu-latest
3536
env:
3637
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' }}
3839
steps:
3940
- uses: actions/checkout@v2
4041
- uses: actions/setup-node@v2
@@ -45,7 +46,8 @@ jobs:
4546
run: |
4647
npm install --only=prod || npm install --only=prod || npm install --only=prod
4748
timeout-minutes: 15
48-
- uses: act10ns/slack@v1
49+
- name: Send notification to Slack in case of failure
50+
uses: act10ns/slack@v1
4951
with:
5052
status: ${{ job.status }}
5153
steps: ${{ toJson(steps) }}

CONTRIBUTORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Justin Dennison <justin1dennison@gmail.com>
1616
Marcus <mfantham@users.noreply.github.com>
1717
Matt Cochrane <matthew.cochrane.eng@gmail.com>
1818
Milan Raj <rajsite@users.noreply.github.com>
19+
Momtchil Momtchev <momtchil@momtchev.com>
1920
Ognjen Jevremović <ognjenjevremovic@users.noreply.github.com>
2021
Philipp Burckhardt <pburckhardt@outlook.com>
2122
Ricky Reusser <rsreusser@gmail.com>

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ limitations under the License.
2020

2121
# Binary String
2222

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] -->
2424

2525
> Return a string giving the literal bit representation of an [unsigned 8-bit integer][integer].
2626
@@ -122,6 +122,16 @@ for ( i = 0; i < x.length; i++ ) {
122122

123123
<!-- /.examples -->
124124

125+
<!-- Section for related `stdlib` packages. Do not manually edit this section, as it is automatically populated. -->
126+
127+
<section class="related">
128+
129+
</section>
130+
131+
<!-- /.related -->
132+
133+
<!-- Section for all links. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
134+
125135

126136
<section class="main-repo" >
127137

@@ -165,9 +175,13 @@ Copyright &copy; 2016-2021. The Stdlib [Authors][stdlib-authors].
165175
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/number-uint8-base-to-binary-string/main.svg
166176
[coverage-url]: https://codecov.io/github/stdlib-js/number-uint8-base-to-binary-string?branch=main
167177

178+
<!--
179+
168180
[dependencies-image]: https://img.shields.io/david/stdlib-js/number-uint8-base-to-binary-string.svg
169181
[dependencies-url]: https://david-dm.org/stdlib-js/number-uint8-base-to-binary-string/main
170182

183+
-->
184+
171185
[chat-image]: https://img.shields.io/gitter/room/stdlib-js/stdlib.svg
172186
[chat-url]: https://gitter.im/stdlib-js/stdlib/
173187

0 commit comments

Comments
 (0)