Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 20 additions & 20 deletions .github/workflows/accessibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/check-and-lint.yml
Original file line number Diff line number Diff line change
@@ -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 }}
4 changes: 3 additions & 1 deletion src/lib/remote/colocation-reserve.remote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()}`
);
}
}

Expand Down
Loading