From 81bbc830f661999c38e37e109240f21134a000b5 Mon Sep 17 00:00:00 2001 From: Parth Shandilya Date: Mon, 11 Jan 2021 09:24:38 +0100 Subject: [PATCH] CI: Run gh-actions on push/pull-request to master --- .github/workflows/CI.yml | 20 +++++++++++--------- README.md | 2 ++ 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index ebf8b687..e1642030 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -2,15 +2,13 @@ name: CI on: push: - - pull_request_target: - branches-ignore: - - master + branches: master + pull_request: + branches: master jobs: test: - name: on ${{ matrix.node }} and ${{ matrix.os }} - + name: Node ${{ matrix.node }} and ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: @@ -21,14 +19,18 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Use node ${{ matrix.node }} uses: actions/setup-node@v2 with: node-version: ${{ matrix.node }} registry-url: https://registry.npmjs.org - - name: install + + - name: Install run: yarn - - name: yarn lint + + - name: Lint run: yarn run lint - - name: test + + - name: Test run: TEST_BROWSER=ChromeHeadless yarn test diff --git a/README.md b/README.md index f2d8f27d..f019c3ed 100755 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[![Actions Status](https://github.com/s-yadav/react-number-format/workflows/CI/badge.svg)](https://github.com/s-yadav/react-number-format/actions) + # react-number-format React component to format number in an input or as a text