diff --git a/.github/workflows/accessibility.yml b/.github/workflows/accessibility.yml index 320b52a..0e21901 100644 --- a/.github/workflows/accessibility.yml +++ b/.github/workflows/accessibility.yml @@ -6,31 +6,31 @@ on: - main - next paths: - - ".github/workflows/accessibility.yml" - - "package.json" - - "playwright.config.*" - - "svelte.config.*" - - "vite.config.*" - - "wrangler.jsonc" - - "pnpm-lock.yaml" - - "src/**" - - "static/**" - - "tests/**" + - '.github/workflows/accessibility.yml' + - 'package.json' + - 'playwright.config.*' + - 'svelte.config.*' + - 'vite.config.*' + - 'wrangler.jsonc' + - 'pnpm-lock.yaml' + - 'src/**' + - 'static/**' + - 'tests/**' push: branches: - main - next paths: - - ".github/workflows/accessibility.yml" - - "package.json" - - "playwright.config.*" - - "svelte.config.*" - - "vite.config.*" - - "wrangler.jsonc" - - "pnpm-lock.yaml" - - "src/**" - - "static/**" - - "tests/**" + - '.github/workflows/accessibility.yml' + - 'package.json' + - 'playwright.config.*' + - 'svelte.config.*' + - 'vite.config.*' + - 'wrangler.jsonc' + - 'pnpm-lock.yaml' + - 'src/**' + - 'static/**' + - 'tests/**' workflow_dispatch: permissions: contents: read diff --git a/.github/workflows/check-and-lint.yml b/.github/workflows/check-and-lint.yml new file mode 100644 index 0000000..2d64983 --- /dev/null +++ b/.github/workflows/check-and-lint.yml @@ -0,0 +1,28 @@ +name: Check & Lint + +on: + pull_request: + workflow_dispatch: + +concurrency: + group: check-and-lint-${{ github.ref }} + cancel-in-progress: true + +jobs: + check: + name: ${{ matrix.task }} + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + task: [check, lint] + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + + - name: Set up PNPM + uses: pnpm/setup@4700d737c3d7a2e7199f3d42a920f0bf7f34e411 # v2.0.1 + with: + cache: true + runtime: node@lts + + - run: pnpm run ${{ matrix.task }} diff --git a/src/lib/remote/colocation-reserve.remote.ts b/src/lib/remote/colocation-reserve.remote.ts index d5b2f71..2096357 100644 --- a/src/lib/remote/colocation-reserve.remote.ts +++ b/src/lib/remote/colocation-reserve.remote.ts @@ -33,7 +33,9 @@ async function sendDiscordNotification(webhookUrl: string, webhookBody: unknown) }); if (!response.ok) { - throw new Error(`Response status: ${response.status}, Response content: ${await response.text()}`); + throw new Error( + `Response status: ${response.status}, Response content: ${await response.text()}` + ); } }