Skip to content

Commit

Permalink
test: coverage codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
birkir committed Jul 17, 2020
1 parent a20ddc8 commit 62fc9f9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,15 @@ jobs:
- name: Compile
run: yarn compile

- name: Collect Coverage
uses: tangro/actions-coverage@1.1.2
- name: Test
run: yarn coverage --ci
env:
TEST_DATABASE_URL: postgresql://prime:prime@postgres:5432/prime-test
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_CONTEXT: ${{ toJson(github) }}
NODE_OPTIONS: --max_old_space_size=4096

- name: Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage/coverage-final.json
fail_ci_if_error: false
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"test:prettier": "prettier --list-different \"**/*.{json,md,js,jsx,ts,tsx}\"",
"prettier": "prettier --write \"**/*.{json,md,js,jsx,ts,tsx}\"",
"coverage": "yarn run jest --coverage --runInBand",
"coverage:collect": "yarn coverage --ci --coverageReporters=\"json\" --coverageReporters=\"json-summary\" --coverageReporters=\"lcov\" --coverageReporters=\"text\"",
"codecov": "codecov",
"reset": "yarn clean && yarn install && yarn setup && yarn compile",
"docs": "typedoc --readme none --mode modules --out docs/api --ignoreCompilerErrors --excludeExternals --external-modulemap \".*(packages/[^/]+)/.*\" --logger none --name \"Prime CMS\" ./packages"
Expand Down

0 comments on commit 62fc9f9

Please sign in to comment.