mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-04-25 03:49:11 +00:00
move api pretest to api package.json instead of CI
This commit is contained in:
parent
650691aead
commit
4d231c011e
2 changed files with 2 additions and 4 deletions
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
|
@ -31,9 +31,7 @@ jobs:
|
||||||
|
|
||||||
- run: yarn lint
|
- run: yarn lint
|
||||||
|
|
||||||
- run: |
|
- run: yarn test
|
||||||
yarn build:api
|
|
||||||
yarn test
|
|
||||||
|
|
||||||
worker_build:
|
worker_build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
"build:dev": "esbuild --bundle --sourcemap --platform=node --format=esm --outdir=dist --out-extension:.js=.mjs ./src/index.ts",
|
"build:dev": "esbuild --bundle --sourcemap --platform=node --format=esm --outdir=dist --out-extension:.js=.mjs ./src/index.ts",
|
||||||
"lint:types": "tsc --noEmit",
|
"lint:types": "tsc --noEmit",
|
||||||
"posttest": "rm .env",
|
"posttest": "rm .env",
|
||||||
"pretest": "cp ../../.env.example .env",
|
"pretest": "cp ../../.env.example .env && yarn build",
|
||||||
"start": "miniflare --watch --debug",
|
"start": "miniflare --watch --debug",
|
||||||
"test": "jest"
|
"test": "jest"
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Reference in a new issue