ci: disable "verify env" step

Until https://github.com/cloudflare/workers-sdk/issues/5082 is fixed
This commit is contained in:
2024-06-04 08:59:11 -04:00
parent 0dfdd45143
commit 204a618385
4 changed files with 18 additions and 10 deletions

View File

@@ -15,11 +15,12 @@ jobs:
run: bun install
- name: Test
run: bun test
- name: Verify env
run: bun src/scripts/verifyEnv.ts
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
IS_CI: true
# TODO: uncomment this when https://github.com/cloudflare/workers-sdk/issues/5082 is fixed
# - name: Verify env
# run: bun env:verify
# env:
# CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
# IS_CI: true
- name: Deploy
uses: cloudflare/wrangler-action@v3
with:

View File

@@ -7,7 +7,9 @@
"dev:cloudflare": "wrangler dev src/index.ts --port 8080",
"dev:server": "bun run --watch src/index.ts",
"prod:server": "bun run src/index.ts",
"deploy": "wrangler deploy --minify src/index.ts"
"deploy": "wrangler deploy --minify src/index.ts",
"env:generate": "bun src/scripts/generateEnv.ts",
"env:verify": "bun src/scripts/verifyEnv.ts"
},
"dependencies": {
"@consumet/extensions": "github:consumet/consumet.ts#2bcd9287dc1471ed081bc23333e7629779924e0e",

8
src/types/env.d.ts vendored
View File

@@ -1,10 +1,10 @@
// Generated by Wrangler on Mon Jun 03 2024 08:35:59 GMT-0400 (Eastern Daylight Time)
// Generated by Wrangler on Tue Jun 04 2024 08:51:21 GMT-0400 (Eastern Daylight Time)
// by running `wrangler types src/types/env.d.ts`
import type { Env as HonoEnv } from "hono";
interface Env {
ENABLE_ANIFY: string;
TURSO_URL: string;
QSTASH_URL: string;
TURSO_URL: "libsql://humble-argent-silverandroid.turso.io";
QSTASH_URL: "https://qstash.upstash.io/v2/publish";
ENABLE_ANIFY: boolean;
TURSO_AUTH_TOKEN: string;
}

View File

@@ -7,6 +7,11 @@ node_compat = true
[vars]
TURSO_URL = "libsql://humble-argent-silverandroid.turso.io"
QSTASH_URL = "https://qstash.upstash.io/v2/publish"
ENABLE_ANIFY = true
[env.production]
[env.production.vars]
ENABLE_ANIFY = false
# [[kv_namespaces]]
# binding = "MY_KV_NAMESPACE"