-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Run test coverage and upload artifacts to codecov (#1063)
* feat: Run test coverage and upload artifacts to codecov Signed-off-by: Flavius Lacatusu <flacatus@redhat.com> * fix: Add codecov to readme and fix workflow Signed-off-by: Flavius Lacatusu <flacatus@redhat.com> * fix readme Signed-off-by: Flavius Lacatusu <flacatus@redhat.com>
- Loading branch information
Showing
3 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: chectl | ||
on: [push] | ||
jobs: | ||
build-and-deploy: | ||
runs-on: ubuntu-20.04 | ||
name: Code coverage | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2.3.1 | ||
with: | ||
persist-credentials: false | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: '12' | ||
- name: Install chectl dependencies | ||
run: yarn | ||
- name: Install codecov | ||
run: npm install codecov -g | ||
- name: Run unit tests | ||
run: yarn test | ||
- name: Submit code coverage results | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
run: bash <(curl -s https://codecov.io/bash) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters