Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,12 @@ jobs:
with:
path: node_modules
key: ${{ needs.setup.outputs.cache-key }}
- run: npm test
- run: npm run test:ci
- uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: PermanentOrg/sftp-service
fail_ci_if_error: true
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is something we might want to consider adding to our other codecov configs -- without it CI can still pass even if we don't successfully upload coverage to CodeCov


build:
needs: [setup]
Expand Down
3 changes: 3 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ module.exports = {
silent: true,
passWithNoTests: true,
preset: "ts-jest",
collectCoverageFrom: ["src/**/*.ts", "!src/**/*.test.ts"],
coverageDirectory: "coverage",
coverageReporters: ["text", "lcov"],
};
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"format:eslint": "eslint ./src --fix || true",
"start": "npm run build && node build/index.js",
"dev": "nodemon --delay 500ms --exec ts-node src/index.ts",
"test": "jest"
"test": "jest",
"test:ci": "jest --coverage"
},
"author": {
"name": "Permanent.org",
Expand Down