Skip to content

refactor(ci): simplify ci #5

refactor(ci): simplify ci

refactor(ci): simplify ci #5

Workflow file for this run

name: Eslint, Prettier and Jest tests
on:
pull_request:
branches: [ main ]
paths:
- template/**/*
jobs:
lint:
name: Run eslint and prettier
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'yarn'
cache-dependency-path: template/yarn.lock
- name: Install dependencies
run: cd template && yarn install --frozen-lockfile
- name: Run lint
run: yarn lint
- name: Run type check
run: yarn type-check
- name: Run tests
run: yarn test
shell: bash