Skip to content

🚧 UPDATE: CI #1674

🚧 UPDATE: CI

🚧 UPDATE: CI #1674

Workflow file for this run

name: Tests
on:
pull_request:
paths:
- '**'
jobs:
build:
name: Builds & Tests
runs-on: ubuntu-latest
strategy:
matrix:
prj:
[
eslint-config,
handles,
helpers,
internals,
vite-plugin-kit-routes,
vite-plugin-stripper,
vite-plugin-watch-and-run,
]
steps:
- name: 🌐 Checkout Repository
uses: actions/checkout@v4
with:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0
- name: πŸ§‘β€πŸ’» Setup env
uses: jycouet/jycouet/shared-config/setup@main
with:
pnpmVersion: 9.15.1
nodeVersion: 22.11.0
- name: 🚧 Build Packages
run: pnpm -F "!website" build
- name: 🧹 Lint Check
run: pnpm -F ${{ matrix.prj }} lint
- name: πŸ‘Œ Run Tests
run: pnpm -F ${{ matrix.prj }} test:ci
# verify_create:
# name: Verify Create
# runs-on: ubuntu-latest
# strategy:
# matrix:
# template: [kit-routes]
# # template: [kit-routes, sveltekit-remult]
# steps:
# - name: 🌐 Checkout Repository
# uses: actions/checkout@v4
# with:
# # This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
# fetch-depth: 0
# - name: πŸ§‘β€πŸ’» Setup env
# uses: jycouet/jycouet/shared-config/setup@main
# with:
# pnpmVersion: 9.15.1
# nodeVersion: 22.11.0
# - name: 🚧 Run build
# run: pnpm build
# - name: βž• Create template
# run:
# cd packages/create-kitql && pnpm dev test-${{ matrix.template }} -t ${{ matrix.template }}
# - name: πŸ§‘β€πŸ’» Install playwright
# run: cd packages/create-kitql/test-${{ matrix.template }} && npx [email protected] install
# - name: πŸ› οΈ e2e install
# run: cd packages/create-kitql/test-${{ matrix.template }} && pnpm i --no-frozen-lockfile
# - name: πŸ‘Œ e2e tests (build, e2e, unit)
# run: cd packages/create-kitql/test-${{ matrix.template }} && pnpm run test:ci