Skip to content

Sveltekit rewrite

Sveltekit rewrite #46

Workflow file for this run

name: Check
on:
workflow_dispatch:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
check:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [21.x]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up SvelteKit on Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Cache Dependencies
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-${{ github.event.pull_request.number }}-
- name: Install Dependencies
run: npm ci
- name: Svelte check
run: npm run check
- name: Format
run: npm run format && git diff --exit-code
- name: Lint
run: npm run lint && git diff --exit-code
- name: Build
run: npm run build