diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 693d796..7f4e4b6 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -19,7 +19,7 @@ jobs: - name: Setup Deno uses: denoland/setup-deno@v1 with: - deno-version: 1.x.x + deno-version: 1.38.5 - name: Check types run: deno check mod.ts @@ -33,5 +33,8 @@ jobs: - name: Test run: deno task test + - name: Ensure output directories exist + run: mkdir -p bin/macos bin/macos-arm bin/linux bin/windows + - name: Build run: deno task compile diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 62ee1a3..b76425a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,7 +26,7 @@ jobs: - name: Setup Deno uses: denoland/setup-deno@v1 with: - deno-version: 1.x.x + deno-version: 1.38.5 - name: Install semantic release run: | diff --git a/commands/machine/schemas.ts b/commands/machine/schemas.ts index 12ef40c..a498e4a 100644 --- a/commands/machine/schemas.ts +++ b/commands/machine/schemas.ts @@ -5,8 +5,10 @@ export const MachineAutoSnapshotFrequencySchema = z.enum([ "daily", "weekly", "monthly", -]); +]).optional(); -export const MachineRestorePointFrequencySchema = z.enum(["shutdown"]); +export const MachineRestorePointFrequencySchema = z.enum(["shutdown"]) + .optional(); -export const MachinePublicIpTypeSchema = z.enum(["static", "dynamic", "none"]); +export const MachinePublicIpTypeSchema = z.enum(["static", "dynamic", "none"]) + .optional();