Skip to content

Commit 5d402fd

Browse files
committed
CI: Add svelte job
1 parent c79e57e commit 5d402fd

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/ci.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,17 @@ jobs:
8282
with:
8383
files: .github/workflows/**
8484

85+
- uses: tj-actions/changed-files@24d32ffd492484c1d75e0c0b894501ddb9d30d62 # v47.0.0
86+
id: changed-files-svelte
87+
with:
88+
files: svelte/**
89+
8590
outputs:
8691
non-js: ${{ steps.changed-files-non-js.outputs.any_modified }}
8792
non-rust: ${{ steps.changed-files-non-rust.outputs.any_modified }}
8893
rust-lockfile: ${{ steps.changed-files-rust-lockfile.outputs.any_modified }}
8994
ci: ${{ steps.changed-files-ci.outputs.any_modified }}
95+
svelte: ${{ steps.changed-files-svelte.outputs.any_modified }}
9096

9197
percy-nonce:
9298
name: Frontend / Percy Nonce
@@ -362,3 +368,34 @@ jobs:
362368
with:
363369
sarif_file: results.sarif
364370
category: zizmor
371+
372+
svelte:
373+
name: Svelte (experimental)
374+
runs-on: ubuntu-24.04
375+
needs: changed-files
376+
if: needs.changed-files.outputs.svelte == 'true'
377+
378+
defaults:
379+
run:
380+
working-directory: svelte
381+
382+
steps:
383+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
384+
with:
385+
persist-credentials: false
386+
387+
- uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
388+
with:
389+
version: ${{ env.PNPM_VERSION }}
390+
391+
- uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
392+
with:
393+
cache: pnpm
394+
node-version-file: package.json
395+
396+
- run: pnpm install
397+
398+
- run: pnpm lint
399+
- run: pnpm check
400+
- run: pnpm build
401+
- run: pnpm test

0 commit comments

Comments
 (0)