Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

Consolidate build and test into CI #1

Consolidate build and test into CI

Consolidate build and test into CI #1

Workflow file for this run

name: Build and Test
on:
push:
pull_request:
branches: [main]
jobs:
build:
name: Node v${{ matrix.node-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
permissions:
contents: read
packages: read
strategy:
matrix:
node-version: [16, 18]
os: [windows-latest, macos-latest, ubuntu-latest]
steps:
- uses: actions/checkout@v2
name: Checkout repository
- uses: actions/setup-node@v2
name: Setup nodejs
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
name: Install npm dependencies
- run: npm run lint
name: 'Smoke Test :: Check linting'
- run: npm run check
name: 'Smoke Test :: Run svelte check'
- run: npm run build
name: 'Smoke Test :: Build Codebase'
- uses: actions/upload-artifact@v3
name: upload production artifacts
- run: npx playwright install --witth-deps
name: Install Playwright's dependencies
- run: npm run test
name: Run tests