Skip to content

Commit

Permalink
ci: Attempt to add test results as annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
scagood committed Feb 9, 2024
1 parent e98dde5 commit 9afbc22
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,20 @@ jobs:
- name: Lint
run: npm run -s lint

test-report:
name: Test - With Report
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
- uses: actions/setup-node@v4
with:
node-version: latest
- run: npm install
- run: npm run -s test:ci:gha

test:
name: Test

Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"devDependencies": {
"@eslint/js": "^8.43.0",
"@types/eslint": "^8.56.2",
"@types/node": "^20.11.17",
"@typescript-eslint/parser": "^6.0.0",
"eslint": "^8",
"eslint-config-prettier": "^9.1.0",
Expand All @@ -39,6 +40,7 @@
"lint-staged": "^15.2.0",
"markdownlint-cli": "^0.39.0",
"mocha": "^10.2.0",
"mocha-reporter-gha": "^1.1.1",
"npm-run-all2": "^6.1.1",
"nyc": "^15.1.0",
"opener": "^1.5.2",
Expand All @@ -65,6 +67,7 @@
"test": "nyc npm run -s test:_mocha",
"test:_mocha": "_mocha \"tests/lib/**/*.js\" --reporter progress --timeout 4000",
"test:ci": "nyc npm run -s test:_mocha",
"test:ci:gha": "_mocha \"tests/lib/**/*.js\" --reporter mocha-reporter-gha --timeout 4000",
"update:eslint-docs": "eslint-doc-generator",
"version": "npm run -s build && eslint lib/rules --fix && git add .",
"watch": "npm run test:_mocha -- --watch --growl"
Expand Down

0 comments on commit 9afbc22

Please sign in to comment.