Skip to content

monorepo & create-svelte-ux #275

monorepo & create-svelte-ux

monorepo & create-svelte-ux #275

Workflow file for this run

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: Node.js CI
on:
push:
branches: ['master']
pull_request:
branches: ['master']
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
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:
nodeVersion: ${{ matrix.node-version }}
- name: 🧹 Prettier Check
run: pnpm lint
- name: 👌 Run Tests
run: pnpm test:unit