Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
J-T-McC committed Jun 10, 2024
1 parent bae5038 commit 07bcd59
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
name: Tests

on: [push]

jobs:
build:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Install modules
run: yarn

- name: Run tests
run: yarn test
run: yarn test

- name: Upload coverage to Coveralls
run: cat ./coverage/lcov.info | yarn coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
1 change: 1 addition & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ module.exports = {
testEnvironment: 'jsdom',
setupFiles: ['jest-canvas-mock'],
collectCoverage: true,
coverageDirectory: 'coverage',
coverageReporters: ['lcov', 'text-summary'],
moduleFileExtensions: ['vue', 'js', 'json', 'jsx', 'ts', 'tsx', 'node']
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"babel-jest": "^27.0.0",
"chart.js": "^4.0",
"chartjs-plugin-zoom": "^1.0.0-beta.5",
"coveralls": "^3.1.0",
"coveralls": "^3.1.1",
"eslint": "^7.14.0",
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-import": "^2.22.1",
Expand Down

0 comments on commit 07bcd59

Please sign in to comment.