Skip to content

Commit

Permalink
Update CI with Coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
yoriiis committed May 30, 2020
1 parent 1e8c3b2 commit f6b11df
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,41 @@ jobs:
- name: Test Jest
run: npm run test

- name: Upload coverage artifacts
uses: actions/upload-artifact@v1
if: github.ref == 'refs/heads/master' &&
github.repository == 'yoriiis/svg-chunk-webpack-plugin' &&
github.event_name != 'pull_request'
with:
name: coverage
path: coverage

- name: Build
run: |
npm run build:tsc
npm run build:example
deploy-coverage:
runs-on: ubuntu-latest
timeout-minutes: 10
needs: build
if: success() &&
github.ref == 'refs/heads/master' &&
github.repository == 'yoriiis/svg-chunk-webpack-plugin' &&
github.event_name != 'pull_request'
steps:
- uses: actions/checkout@v2

- name: Download coverage artifacts
uses: actions/download-artifact@v1
with:
name: coverage

- uses: actions/setup-node@v1
with:
node-version: 12.14.0

- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit f6b11df

Please sign in to comment.