diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml new file mode 100644 index 00000000..e664bf8d --- /dev/null +++ b/.github/workflows/coverage.yml @@ -0,0 +1,22 @@ +name: Coverage + +on: + push: + branches: [ master ] + +jobs: + test: + + runs-on: ubuntu-latest + + steps: + - uses: actions/setup-node@v1 + with: + node-version: '12.x' + - uses: actions/checkout@v2 + - run: yarn install + - run: yarn coverage + - name: Coveralls + uses: coverallsapp/github-action@v1.1.2 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/test-pull-request.yml b/.github/workflows/test-pull-request.yml index bab8512b..71ed0b7d 100644 --- a/.github/workflows/test-pull-request.yml +++ b/.github/workflows/test-pull-request.yml @@ -24,7 +24,7 @@ jobs: - run: yarn test - run: yarn coverage - name: Coveralls - uses: coverallsapp/github-action@master + uses: coverallsapp/github-action@v1.1.2 with: github-token: ${{ secrets.GITHUB_TOKEN }} - run: yarn build