-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c2c2cf5
commit af76c30
Showing
8 changed files
with
1,982 additions
and
43 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Test API | ||
name: Test DragaliaAPI | ||
|
||
on: | ||
push: | ||
|
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 MaintenanceWorker | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- MaintenanceWorker/** | ||
|
||
jobs: | ||
vitest: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install pnpm | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
version: 9 | ||
|
||
- name: Install dependencies | ||
run: | | ||
cd MaintenanceWorker | ||
pnpm install | ||
- name: Run tests | ||
run: pnpm run 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,19 @@ | ||
{ | ||
"name": "maintenance-worker", | ||
"packageManager": "[email protected]", | ||
"version": "1.0.0", | ||
"description": "Cloudflare worker for showing the maintenance screen even if the origin server is down", | ||
"devDependencies": { | ||
"@msgpack/msgpack": "3.0.0-beta2", | ||
"@types/jest": "29.5.12", | ||
"miniflare": "3.20240605.0", | ||
"vitest": "1.6.0", | ||
"vitest-environment-miniflare": "2.14.2", | ||
"wrangler": "3.57.0" | ||
}, | ||
"type": "module", | ||
"scripts": { | ||
"start": "pnpm exec wrangler dev" | ||
"start": "pnpm exec wrangler dev", | ||
"test": "pnpm exec vitest run" | ||
} | ||
} |
Oops, something went wrong.