Skip to content

Commit

Permalink
SC-88445: add-code-coverage-to-all-dx-projects (#24)
Browse files Browse the repository at this point in the history
* added code coverage and codecov

* Change name of codecov in CI

* Update README.md

test adding codecov badge

Co-authored-by: Leah Copeland <leah.copeland@neofinancial.com>
  • Loading branch information
neo-anand-patel and leah-is-offline authored Mar 9, 2022
1 parent 8fd9362 commit 4befdc5
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: CI

on: [push]
on:
pull_request:
types: ['opened', 'reopened', 'synchronize']
push:
branches:
- master

jobs:
build:
Expand All @@ -24,4 +29,15 @@ jobs:
- name: Build
run: yarn build
- name: Test
run: yarn test
run: yarn test -- --coverage
- name: Codecov
uses: codecov/codecov-action@v1
with:
token: ${{secrets.CODECOV_TOKEN}}
- name: Coverage
uses: neofinancial/coverage-upload-action@v1
with:
coverageEndpoint: $${{secrets.COVERAGE_ENDPOINT}}
coverageToken: ${{secrets.COVERAGE_TOKEN}}
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

[![Build status](https://github.com/neofinancial/config-dug/workflows/CI/badge.svg)](https://github.com/neofinancial/ccscan/actions)
![TypeScript 3.5.3](https://img.shields.io/badge/TypeScript-3.5.3-brightgreen.svg)
[![coverage](https://coverage.neotools.ca/api/badge/master/sU3MNGvvrQN9LyiFXr1uy3)](https://coverage.neotools.ca/coverage/neofinancial/ccscan)
[![codecov.io](https://codecov.io/github/neofinancial/ccscan/coverage.svg)](https://codecov.io/github/neofinancial/ccscan)

Scan files for credit card numbers

Expand Down

0 comments on commit 4befdc5

Please sign in to comment.