-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Add Github Actions and fix type errors(#18)
History of this squashed commit: * Fix a test and type error * Add github action tests * Pass test in both node 18 and 20 * Remove some unused imports * Add typecheck and build to CI * Mute some type errors * chore: fix type issues found after upgrading dependencies, see: cloudflare/workerd#1298 * Remove ts-nocheck * Still disable threads for vitest to fix timeouts * fix: simplify manifest upload by copying into a text Locally in unit tests manifest upload could hang sometimes. * Remove `threads: false` in vitest config * Set pool to forks in vitest config * Avoid pool option and avoid pining node types --------- Co-authored-by: Gabi Villalonga Simon <[email protected]> Co-authored-by: Gabriel Villalonga Simón <[email protected]>
- Loading branch information
1 parent
b74093a
commit 81a7219
Showing
14 changed files
with
2,745 additions
and
410 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Test | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
test: | ||
name: Unit Tests | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [18.x, 20.x] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Use Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- run: npm ci | ||
- run: npm run typecheck | ||
- run: npm test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.