Skip to content

feat: unit tests and CI (#12) #2

feat: unit tests and CI (#12)

feat: unit tests and CI (#12) #2

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
- name: Install dependencies
run: npm ci
- name: Run Prettier
run: npm run prettier -- --check .
- name: Run ESLint
run: npm run lint
- name: Build app
run: npm run build
- name: Run tests
run: npm test -- --watch=false --browsers=ChromeHeadless