-
-
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.
- Parse variables before processing request to cut out code duplication - Make the webpage a bit more fancy and use JS to show a local time - Add some basic tests + CI workflow
- Loading branch information
1 parent
f64255a
commit 75aac78
Showing
16 changed files
with
2,250 additions
and
196 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,34 @@ | ||
name: Test MaintenanceWorker | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- MaintenanceWorker/** | ||
|
||
jobs: | ||
vitest: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
sparse-checkout: MaintenanceWorker | ||
|
||
- name: Install pnpm | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
version: 9 | ||
|
||
- name: Install dependencies | ||
working-directory: MaintenanceWorker | ||
run: pnpm install | ||
|
||
- name: Build | ||
working-directory: MaintenanceWorker | ||
run: pnpm exec wrangler deploy --dry-run | ||
|
||
- name: Test | ||
working-directory: MaintenanceWorker | ||
run: pnpm run test |
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
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": "npx wrangler dev" | ||
"start": "pnpm exec wrangler dev", | ||
"test": "pnpm exec vitest run" | ||
} | ||
} |
Oops, something went wrong.