Skip to content

Update dependency @sveltejs/kit to v1.27.0 #707

Update dependency @sveltejs/kit to v1.27.0

Update dependency @sveltejs/kit to v1.27.0 #707

Workflow file for this run

on:
pull_request:
push:
branches: main
name: CI Jobs
jobs:
check-rust:
name: Check Rust
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
- name: Rust cache
uses: Swatinem/rust-cache@v2
- name: Run cargo check
uses: actions-rs/cargo@v1
with:
command: check
# Can't set working-directory for some reason https://github.com/actions-rs/cargo/issues/86
args: --manifest-path ./rs/Cargo.toml
check-svelte:
name: Check Svelte
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- uses: pnpm/action-setup@v2
name: Install pnpm
id: pnpm-install
with:
version: 7
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Setup Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
- name: Rust cache
uses: Swatinem/rust-cache@v2
- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- name: Install dependencies
run: pnpm install
- name: Build WebAssembly
run: pnpm build:wasm
- name: Build Vite
run: pnpm build
- name: Run svelte check
run: pnpm check
- name: Check linting
run: pnpm lint