Skip to content

update /dev/hackathons-sp26 shortlink #3086

update /dev/hackathons-sp26 shortlink

update /dev/hackathons-sp26 shortlink #3086

# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Website Check
on:
workflow_dispatch:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
website_check:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up SvelteKit on Node.js
uses: actions/setup-node@v5
with:
node-version-file: '.nvmrc'
cache: 'npm'
- name: Install Dependencies
run: npm ci
- name: Copy .env from .env.example
run: cp .env.example .env
- 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: Vitest tests
run: npm t
- name: Size Check
run: npm run test:size
- name: Transform Genuary Check Changes
id: transform-genuary-check-changes
shell: bash
run: |
if git diff --exit-code --quiet scripts/transform-genuary; then
echo "updated=0" >> $GITHUB_OUTPUT;
else
echo "updated=1" >> $GITHUB_OUTPUT;
fi
- name: Test Transform Genuary
if: steps.transform-genuary-check-changes.outputs.updated == 1
run: node scripts/transform-genuary/test.js