Skip to content

Commit 3b44ae1

Browse files
committed
Auto-generated commit
1 parent 223f237 commit 3b44ae1

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/test_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
@@ -140,7 +140,7 @@ function array() {
140140
} else {
141141
buffer = arguments[ 0 ];
142142
if ( !isArrayLikeObject( buffer ) ) { // weak test
143-
throw new TypeError( format( 'invalid option. Data source must be an array-like object, typed-array-like, a Buffer, or an ndarray. Value: `%s`.' , buffer ) );
143+
throw new TypeError( format( 'invalid option. Data source must be an array-like object, typed-array-like, a Buffer, or an ndarray. Value: `%s`.', buffer ) );
144144
}
145145
options = arguments[ 1 ];
146146
if ( !isObject( options ) ) {

0 commit comments

Comments
 (0)