Skip to content

Commit 2e5ad61

Browse files
cursoragentAaronDDM
andcommitted
Refactor: Update GitHub actions and dependencies to Vitest
This commit updates the GitHub Actions workflow to use the latest versions of actions/checkout and actions/setup-node. It also migrates the testing framework from Jest to Vitest, which includes updating relevant dependencies and configurations. Co-authored-by: aaron.d <[email protected]>
1 parent 2bd4fc7 commit 2e5ad61

35 files changed

+7978
-8961
lines changed

.github/workflows/pull-reqeust.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ jobs:
1717
node-version: [ 16.x, 18.x, 20.x ]
1818
name: Nodejs ${{ matrix.node-version }}
1919
steps:
20-
- uses: actions/checkout@v2
20+
- uses: actions/checkout@v4
2121
- name: Setup Nodejs ${{ matrix.node-version }}
22-
uses: actions/setup-node@v1
22+
uses: actions/setup-node@v4
2323
with:
2424
node-version: ${{ matrix.node-version }}
2525

@@ -32,10 +32,13 @@ jobs:
3232
- name: Run prettier checks
3333
run: npm run lint:prettier:check
3434

35-
- name: Run tests
35+
- name: Run Node.js tests
3636
run: npm run test:coverage
3737

38+
- name: Run Cloudflare Workers tests
39+
run: npm run test:miniflare
40+
3841
- name: Upload coverage to Codecov
39-
uses: codecov/codecov-action@v3
42+
uses: codecov/codecov-action@v4
4043
with:
4144
token: ${{ secrets.CODECOV_TOKEN }}

jest.config.js

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)