Skip to content

Add GitHub actions

Add GitHub actions #2

Workflow file for this run

name: CI
on:
push:
branches: ['main']
pull_request:
branches: ['main']
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
- name: Install depensencies
run: npm ci
- name: Check TypeScript types
run: npm run check-types
- name: Check ESLint
run: npm run lint
- name: Check Prettier formatting
run: npm run check-formatting