10000 Auto-generated commit · stdlib-js/ndarray-zeros-like@1d08f13 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1d08f13

Browse files
committed
Auto-generated commit
1 parent 4dcdb75 commit 1d08f13

File tree

5 files changed

+23
-3
lines changed

5 files changed

+23
-3
lines changed

.github/.keepalive

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/workflows/npm_downloads.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,13 @@ jobs:
7575
echo "::set-output name=data::$data"
7676
timeout-minutes: 5
7777

78+
# Print summary of download data:
79+
- name: 'Print summary'
80+
run: |
81+
echo "| Date | Downloads |" >> $GITHUB_STEP_SUMMARY
82+
echo "|------|------------|" >> $GITHUB_STEP_SUMMARY
83+
cat ./tmp/npm_downloads.json | jq -r ".downloads | .[-14:] | to_entries | map(\"| \(.value.day) | \(.value.downloads) |\") |.[]" >> $GITHUB_STEP_SUMMARY
84+
7885
# Upload the download data:
7986
- name: 'Upload data'
8087
uses: actions/upload-artifact@v2

.github/workflows/productionize.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ jobs:
117117
runs-on: 'ubuntu-latest'
118118

119119
# Indicate that this job depends on the prior job finishing:
120-
needs: test
120+
needs: productionize
121121

122122
# Run this job regardless of the outcome of the prior job:
123123
if: always()

.github/workflows/tes 8000 t_coverage.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,20 @@ jobs:
9090
coverage=`cat reports/coverage/lcov-report/index.html | grep "fraction" | grep -oP '\d+/\d+' | printf %s "$(cat)" | jq -R -s -c 'split("\n")'`
9191
echo "::set-output name=coverage::$coverage"
9292
93+
# Format coverage as Markdown table row:
94+
table=`echo $coverage | sed -e 's/,/|/g; s/"/ /g; s/\[/|/; s/\]/|/'`
95+
echo "::set-output name=table::$table"
96+
97+
# Print coverage report to GitHub Actions log:
98+
- name: 'Print coverage report to GitHub Actions log'
99+
run: |
100+
echo "## Coverage Report" >> $GITHUB_STEP_SUMMARY
101+
echo "" >> $GITHUB_STEP_SUMMARY
102+
echo "| Statements | Branches | Functions | Lines | " >> $GITHUB_STEP_SUMMARY
103+
echo "| ---------- | -------- | --------- | ----- | " >> $GITHUB_STEP_SUMMARY
104+
echo "${{ steps.extract-coverage.outputs.table }}" >> $GITHUB_STEP_SUMMARY
105+
echo "" >> $GITHUB_STEP_SUMMARY
106+
93107
# Send Slack notification if job fails:
94108
- name: 'Send status to Slack channel in case of failure'
95109
uses: act10ns/slack@v1

lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ function zerosLike( x ) {
9292
opts.shape = [ opts.shape ];
9393
}
9494
if ( !isNonNegativeIntegerArray( opts.shape ) ) {
95-
throw new TypeError( format( 'invalid option. `%s` option must either be a nonnegative integer or an array of nonnegative integers. Option: `%s`.', 'shape', opts.shape ) );
95+
throw new TypeError( format( 'invalid option. `%s` option must be a nonnegative integer or an array of nonnegative integers. Option: `%s`.', 'shape', opts.shape ) );
9696
}
9797
} else {
9898
opts.shape = x.shape;

0 commit comments

Comments
 (0)
0