SvelteKit + GitHub Actions CI
Lint, typecheck, test and build on every push and PR. This page shows exactly what pickstack adds to a SvelteKit project for GitHub Actions CI: the packages, the new files and the changes to existing ones. Every combination is installed, built, linted and tested in CI.
$ npm create pickstack@latest my-app -- --framework sveltekit --modules github-actions --yesCustomize in the configurator
New files
name: CI
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: 24
# Once the lockfile is committed, add `cache: npm` to cache dependencies.
- run: npm install
- run: npm run typecheck
- run: npm run build
Changes to existing files
<section class="page"> <h1 class="title">About</h1>+ <p class="text">+ Built with SvelteKit, Svelte 5, TypeScript, GitHub Actions.+ </p>− <p class="text">Built with SvelteKit, Svelte 5, TypeScript.</p> </section>
Project files
.github/workflows/ci.yml.gitignoreREADME.mdpackage.jsonsrc/app.d.tssrc/app.htmlsrc/lib/Counter.sveltesrc/lib/index.tssrc/routes/+layout.sveltesrc/routes/+layout.tssrc/routes/+page.sveltesrc/routes/about/+page.sveltesrc/routes/layout.cssstatic/robots.txttsconfig.jsonvite.config.ts