Skip to content

Commit

Permalink
chore(ci): report test results
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyckahn committed Aug 26, 2023
1 parent 2f795d9 commit 5cdeaba
Show file tree
Hide file tree
Showing 6 changed files with 97 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Expand Up @@ -19,6 +19,13 @@ jobs:
npm ci
npm run ci
- name: 'Report test coverage'
uses: dorny/test-reporter@v1
with:
name: Jest Tests # Name of the check run which will be created
path: reports/jest-*.xml # Path to test results
reporter: jest-junit # Format of test results

- name: 'Build code'
run: |
npm run build
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -3,3 +3,5 @@
*.vim
node_modules/
dist
src/coverage
reports/jest-junit.xml
73 changes: 73 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 12 additions & 1 deletion package.json
Expand Up @@ -32,6 +32,7 @@
"gh-pages": "^2.2.0",
"husky": "^1.3.1",
"jest": "^29.5.0",
"jest-junit": "^16.0.0",
"nodemon": "^2.0.20",
"npm-run-all": "^4.1.5",
"prettier": "^1.16.4",
Expand All @@ -50,7 +51,8 @@
"typegen": "tsc",
"typegen:watch": "tsc --watch",
"test": "jest --watch",
"ci": "npm run lint && jest && tsc",
"test:coverage": "jest --coverage",
"ci": "npm run lint && jest --reporters=default --reporters=jest-junit && tsc",
"doc": "typedoc src/index.ts",
"doc:view": "serve dist/doc",
"doc:watch": "nodemon --exec \"npm run doc\" --watch src --watch ./ --ext ts,js,json,md --ignore dist",
Expand All @@ -73,5 +75,14 @@
"license": "MIT",
"optionalDependencies": {
"fsevents": "^2.3.2"
},
"jest-junit": {
"outputDirectory": "reports",
"outputName": "jest-junit.xml",
"ancestorSeparator": "",
"uniqueOutputName": "false",
"suiteNameTemplate": "{filepath}",
"classNameTemplate": "{classname}",
"titleTemplate": "{title}"
}
}
1 change: 1 addition & 0 deletions src/bezier.ts
Expand Up @@ -41,6 +41,7 @@ import { EasingFunction, EasingKey } from './types'
*/
// port of webkit cubic bezier handling by http://www.netzgesta.de/dev/

/* istanbul ignore next */
function cubicBezierAtTime(
t: number,
p1x: number,
Expand Down
2 changes: 2 additions & 0 deletions src/standard-easing-functions.ts
@@ -1,3 +1,5 @@
/* istanbul ignore file */

/*!
* All equations are adapted from Thomas Fuchs'
* [Scripty2](https://github.com/madrobby/scripty2/blob/master/src/effects/transitions/penner.js).
Expand Down

0 comments on commit 5cdeaba

Please sign in to comment.