Skip to content

Commit

Permalink
ci: publish to coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
marabesi committed Jul 21, 2024
1 parent 1f9e62a commit ce4a537
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -181,11 +181,11 @@ jobs:
pattern: "*-lcov"
merge-multiple: false
- run: |
ls -R coverage
mkdir merged_coverage
mv coverage/cypress-lcov/lcov.info merged_coverage/cypress.info
mv coverage/jest-lcov/lcov.info merged_coverage/jest.info
./node_modules/.bin/lcov-result-merger './merged_coverage/*' merged_coverage.info
npm run coveralls
- uses: actions/upload-artifact@v2
with:
name: merged-lcov
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
"test": "craco test src/",
"test:all": "npm run e2e && npm run test -- --watchAll=false",
"coverage": "craco test --env=jsdom --no-cache --collectCoverage --ci --watchAll=false --colors --silent",
"coveralls": "npm run coverage && coveralls < coverage/lcov.info",
"coveralls": "coveralls < merged_coverage.info",
"e2e": "CYPRESS_BASE_URL=http://localhost:3000 cypress run",
"e2e:open": "CYPRESS_BASE_URL=http://localhost:3000 cypress open",
"eject": "craco eject",
Expand Down

0 comments on commit ce4a537

Please sign in to comment.