forked from getarcaneapp/arcane
-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (50 loc) · 1.39 KB
/
svelte-check.yml
File metadata and controls
59 lines (50 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Svelte Check
on:
push:
branches: [main]
paths:
- 'frontend/src/**'
- '.github/workflows/svelte-check.yml'
- '.github/svelte-check-matcher.json'
- 'package.json'
- 'pnpm-lock.yaml'
- 'tsconfig.json'
- 'svelte.config.js'
pull_request:
branches: [main]
paths:
- 'frontend/src/**'
- '.github/workflows/svelte-check.yml'
- '.github/svelte-check-matcher.json'
- 'package.json'
- 'pnpm-lock.yaml'
- 'tsconfig.json'
- 'svelte.config.js'
workflow_dispatch:
jobs:
type-check:
name: Run Svelte Check
# Don't run on dependabot branches
if: github.actor != 'dependabot[bot]'
runs-on: ubuntu-latest
permissions:
contents: read
checks: write
pull-requests: write
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Setup Node.js
uses: actions/setup-node@v5
with:
node-version: 24
- name: Install dependencies
run: pnpm --filter arcane-frontend install --frozen-lockfile
- name: Add svelte-check problem matcher
run: echo "::add-matcher::.github/svelte-check-matcher.json"
- name: Build frontend
run: pnpm --filter arcane-frontend build
- name: Run svelte-check
run: pnpm --filter arcane-frontend check