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

Commit

Permalink
Merge pull request ember-cli#9101 from ember-cli/migrate-coverage-to-…
Browse files Browse the repository at this point in the history
…gh-actions

Migrate code coverage to GitHub Actions.
  • Loading branch information
rwjblue authored Mar 15, 2020
2 parents 481839e + cc8d4aa commit b06353c
Show file tree
Hide file tree
Showing 7 changed files with 53 additions and 19 deletions.
12 changes: 9 additions & 3 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
version: "2" # required to adjust maintainability checks
languages:
JavaScript: true

checks:
file-lines:
enabled: false


exclude_paths:
- "tests/acceptance/*"
- "tests/fixtures/*"
- "tests/unit/*"
- "**/tests"
- "**/tmp"
- "**/node_modules/"
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 }}
11 changes: 11 additions & 0 deletions .nycrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"include": [
"bin/**/*.js",
"lib/**/*.js",
"blueprints/**/*.js"
],

"exclude": [
"blueprints/*/files/**"
]
}
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.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"prepack": "yarn docs",
"test": "node --unhandled-rejections=strict tests/runner",
"test:all": "node --unhandled-rejections=strict tests/runner all",
"test:cover": "nyc node tests/runner all",
"test:cover": "nyc --all --reporter=text --reporter=lcov node tests/runner all",
"test:slow": "node --unhandled-rejections=strict tests/runner slow",
"test:debug": "node --unhandled-rejections=strict debug tests/runner"
},
Expand Down

0 comments on commit b06353c

Please sign in to comment.