From 19b898bb6cc5ccaf11173aef869466810692e4f5 Mon Sep 17 00:00:00 2001 From: David Lechner Date: Sun, 24 Jan 2021 14:58:33 -0600 Subject: [PATCH] github: add coverage build for master branch --- .github/workflows/coverage.yml | 22 ++++++++++++++++++++++ .github/workflows/test-pull-request.yml | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/coverage.yml 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