Skip to content

Commit

Permalink
chore: upgrade webpack 5, lerna and use jest (#230)
Browse files Browse the repository at this point in the history
* chore: upgrade lint-staged

* chore: upgrade lerna

* chore: upgrade mocha

* misc: upgrade webpack 5

* chore: use jest to replace mocha and karma

* chore: update coverage config

* chore: test with jsdom
  • Loading branch information
embbnux authored Oct 23, 2023
1 parent a7b4164 commit 5451c5a
Show file tree
Hide file tree
Showing 31 changed files with 36,301 additions and 13,671 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,21 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://registry.npmjs.org'
- run: sudo apt-get install xvfb
- run: npm install
- run: DEBUG=eslint:cli-engine npm run lint:all
- run: npm run build
- run: xvfb-run --auto-servernum -- npm test
env:
CHROME_BIN: chromium-browser
- run: npm run test:browser
- run: npm run test:coverage
- run: cat */coverage/lcov.info
- name: Coveralls SDK
uses: coverallsapp/github-action@1.1.3
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./sdk/coverage/lcov.info
base-path: ./sdk
flag-name: sdk
parallel: true
- name: Coveralls
uses: coverallsapp/github-action@1.1.3
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true
Expand Down
2 changes: 1 addition & 1 deletion .huskyrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"hooks": {
"pre-commit": "npm run lint:staged && npm run test:quick"
"pre-commit": "npm run lint:staged && npm run test"
}
}
Loading

0 comments on commit 5451c5a

Please sign in to comment.