Skip to content

Commit

Permalink
ci: add missing CODECOV_TOKEN in ci.yaml workflow file (#40)
Browse files Browse the repository at this point in the history
* ci: add missing CODECOV_TOKEN in ci.yaml workflow file

* ci: comment upload coverage out as the script 'coverage:report' does not exist
  • Loading branch information
albertfolch-redeemeum authored May 30, 2022
1 parent 488254d commit f13c2e9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
UPDATE_COVERAGE: false
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
call-reusable-workflow-testing:
uses: bosonprotocol/interface/.github/workflows/ci_reusable.yaml@main
if: github.event_name == 'push'
Expand All @@ -32,6 +33,7 @@ jobs:
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
FLEEK_API_KEY: ${{ secrets.FLEEK_API_KEY }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
call-reusable-workflow-staging:
uses: bosonprotocol/interface/.github/workflows/ci_reusable.yaml@main
if: github.event_name == 'release' && github.event.action == 'created'
Expand All @@ -42,4 +44,5 @@ jobs:
UPDATE_COVERAGE: false
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
FLEEK_API_KEY: ${{ secrets.FLEEK_API_KEY }}
FLEEK_API_KEY: ${{ secrets.FLEEK_API_KEY }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
18 changes: 9 additions & 9 deletions .github/workflows/ci_reusable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,15 @@ jobs:
- run: npm run build
- id: build
run: echo "::set-output name=pass::success"
- name: Run Tests & Generate coverage report
run: npm run coverage:report
- name: Upload coverage to Codecov
if: ${{ inputs.UPDATE_COVERAGE }}
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
verbose: true
# - name: Run Tests & Generate coverage report
# run: npm run coverage:report
# - name: Upload coverage to Codecov
# if: ${{ inputs.UPDATE_COVERAGE }}
# uses: codecov/codecov-action@v2
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# fail_ci_if_error: true
# verbose: true
- name: Copy contents from .fleek_staging.json to .fleek.json
if: ${{ inputs.ENV_NAME == 'staging' }}
run: mv .fleek_staging.json .fleek.json
Expand Down

0 comments on commit f13c2e9

Please sign in to comment.