Skip to content
This repository has been archived by the owner on Feb 21, 2024. It is now read-only.

Commit

Permalink
Move codecoverage reporting to GitHub Actions CI
Browse files Browse the repository at this point in the history
  • Loading branch information
rwjblue committed Mar 15, 2020
1 parent 481839e commit 8725a0d
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 15 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ jobs:

- run: yarn install --frozen-lockfile --non-interactive
- run: yarn test:all
continue-on-error: ${{ matrix['continue-on-error'] == true }}

feature-flags:
name: "Feature: ${{ matrix.feature-flag }}"
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Code Coverage

on:
push:
branches:
- master

jobs:
coverage:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12.x

- run: yarn install --frozen-lockfile --non-interactive

- name: Test && Report to Code Climate
uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageCommand: yarn test:cover
coverageLocations: "coverage/lcov.info:lcov"
prefix: ${{ github.workspace }}

- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
4 changes: 0 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,6 @@ jobs:

- name: Node.js 12
node_js: 12
script:
- yarn test:cover
after_success:
- .travis/codecoverage.sh

- name: Node.js 13
node_js: 13
Expand Down
10 changes: 0 additions & 10 deletions .travis/codecoverage.sh

This file was deleted.

0 comments on commit 8725a0d

Please sign in to comment.