Add codecov coverage uploading (#308)
* Add codecov coverage uploading. * ignore coverage dir, add codecov badge, use 4.0.1 of codecov action
This commit is contained in:
@@ -13,8 +13,15 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
- run: npm ci && npm run build
|
||||
- run: npm ci
|
||||
- run: npm run build
|
||||
- run: npm test
|
||||
- run: npm run test:gen-cov
|
||||
- name: Upload coverage to CodeCov
|
||||
uses: codecov/[email protected]
|
||||
with:
|
||||
directory: ./coverage
|
||||
token: ${{ secrets.CODECOV_TOKEN }}
|
||||
|
||||
integration_test_botToken:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
@@ -2,3 +2,4 @@ node_modules
|
||||
.DS_Store
|
||||
.nyc_output
|
||||
dist
|
||||
coverage
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
# Slack Send GitHub Action
|
||||
|
||||
[](https://codecov.io/gh/slackapi/slack-github-action)
|
||||
|
||||
Send data into Slack using this GitHub Action!
|
||||
|
||||
## Sending Variables
|
||||
|
||||
+3
-2
@@ -6,8 +6,9 @@
|
||||
"scripts": {
|
||||
"lint": "eslint .",
|
||||
"local": "act public --eventpath .github/workflows/local/event.json --secret-file .github/workflows/local/.env --platform ubuntu-latest=node:20-buster",
|
||||
"test:mocha": "nyc mocha --config .mocharc.json test/*-test.js",
|
||||
"test": "npm run lint && npm run test:mocha",
|
||||
"test:mocha": "mocha --config .mocharc.json test/*-test.js",
|
||||
"test:gen-cov": "nyc --reporter=lcov npm run test:mocha",
|
||||
"test": "npm run lint && nyc npm run test:mocha",
|
||||
"build": "npx @vercel/ncc build src/index.js --license licenses.txt"
|
||||
},
|
||||
"repository": {
|
||||
|
||||
Reference in New Issue
Block a user