diff --git a/.editorconfig b/.editorconfig index 2900add..0fd4d6c 100644 --- a/.editorconfig +++ b/.editorconfig @@ -45,6 +45,10 @@ indent_style = tab indent_style = space indent_size = 2 +# Set properties for `cli_opts.json` files: +[cli_opts.json] +indent_style = tab + # Set properties for TypeScript files: [*.ts] indent_style = tab diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cd15304..7f0967a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -53,7 +53,8 @@ jobs: id: tests run: | npm test || npm test || npm test - - uses: act10ns/slack@v1 + - name: Send status to Slack channel in case of failure + uses: act10ns/slack@v1 with: status: ${{ job.status }} steps: ${{ toJson(steps) }} diff --git a/.github/workflows/test_coverage.yml b/.github/workflows/test_coverage.yml index f5697d4..bb78d4f 100644 --- a/.github/workflows/test_coverage.yml +++ b/.github/workflows/test_coverage.yml @@ -51,14 +51,26 @@ jobs: timeout-minutes: 15 - name: Upload coverage to Codecov id: upload - uses: codecov/codecov-action@v1 + uses: codecov/codecov-action@v2 with: directory: reports/coverage flags: unittests fail_ci_if_error: true + - name: Extract coverage value and assign to output + id: extract-coverage + run: | + coverage=`cat reports/coverage/lcov-report/index.html | grep "fraction" | grep -oP '\d+/\d+' | printf %s "$(cat)" | jq -R -s -c 'split("\n")'` + echo "::set-output name=coverage::$coverage" - uses: act10ns/slack@v1 with: status: ${{ job.status }} steps: ${{ toJson(steps) }} channel: '#npm-ci' if: failure() + - name: Send Webhook with status to stdlib backend + uses: distributhor/workflow-webhook@v2 + env: + webhook_url: ${{ secrets.STDLIB_COVERAGE_URL }} + webhook_secret: ${{ secrets.STDLIB_WEBHOOK_SECRET }} + data: '${{ steps.extract-coverage.outputs.coverage }}' + if: ${{ false }} diff --git a/.github/workflows/test_install.yml b/.github/workflows/test_install.yml index 0bb1900..bbe93c1 100644 --- a/.github/workflows/test_install.yml +++ b/.github/workflows/test_install.yml @@ -27,6 +27,7 @@ on: workflow_run: workflows: ["Publish Package"] types: [completed] + workflow_dispatch: # Workflow jobs: jobs: @@ -34,7 +35,7 @@ jobs: runs-on: ubuntu-latest env: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - if: ${{ github.event.workflow_run.conclusion == 'success' }} + if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }} steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 @@ -45,7 +46,8 @@ jobs: run: | npm install --only=prod || npm install --only=prod || npm install --only=prod timeout-minutes: 15 - - uses: act10ns/slack@v1 + - name: Send notification to Slack in case of failure + uses: act10ns/slack@v1 with: status: ${{ job.status }} steps: ${{ toJson(steps) }} diff --git a/CONTRIBUTORS b/CONTRIBUTORS index da469e5..afd251d 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -16,6 +16,7 @@ Justin Dennison Marcus Matt Cochrane Milan Raj +Momtchil Momtchev Ognjen Jevremović Philipp Burckhardt Ricky Reusser diff --git a/README.md b/README.md index 55cabb0..0796dc0 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ limitations under the License. # isUint32Array -[![NPM version][npm-image]][npm-url] [![Build Status][test-image]][test-url] [![Coverage Status][coverage-image]][coverage-url] [![dependencies][dependencies-image]][dependencies-url] +[![NPM version][npm-image]][npm-url] [![Build Status][test-image]][test-url] [![Coverage Status][coverage-image]][coverage-url] > Test if a value is a [Uint32Array][mdn-uint32array]. @@ -180,9 +180,13 @@ Copyright © 2016-2021. The Stdlib [Authors][stdlib-authors]. [coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/assert-is-uint32array/main.svg [coverage-url]: https://codecov.io/github/stdlib-js/assert-is-uint32array?branch=main + + [chat-image]: https://img.shields.io/gitter/room/stdlib-js/stdlib.svg [chat-url]: https://gitter.im/stdlib-js/stdlib/