Skip to content

common: update and simplify code #2498

common: update and simplify code

common: update and simplify code #2498

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint_build:
name: 'Lint and Build'
strategy:
fail-fast: false
matrix:
framework: [react, vue, svelte, solid, web]
defaults:
run:
working-directory: ${{ matrix.framework }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'npm'
cache-dependency-path: ${{ matrix.framework }}/package-lock.json
- name: Install dependencies
run: npm i
- name: Run ESLint
run: npm run lint
- name: Run Prettier
run: npm run format
- name: Build project
run: npm run build