2024-05-17 03:19:39 +00:00
|
|
|
# Lint
|
|
|
|
name: Web Lint
|
|
|
|
|
|
|
|
on:
|
2024-05-21 11:42:43 +00:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
- releases/**
|
|
|
|
paths:
|
|
|
|
- web/**
|
2024-05-17 03:19:39 +00:00
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- develop
|
|
|
|
- main
|
|
|
|
- releases/**
|
|
|
|
- feature/**
|
|
|
|
paths:
|
|
|
|
- web/**
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Lint
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- name: Setup node
|
|
|
|
uses: actions/setup-node@v4
|
|
|
|
with:
|
|
|
|
node-version: 20
|
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: cd web && npm install
|
|
|
|
|
2024-05-23 09:13:38 +00:00
|
|
|
- name: Type-Check
|
|
|
|
run: cd web && npm run type-check
|
|
|
|
|
2024-05-17 03:19:39 +00:00
|
|
|
- name: Lint
|
|
|
|
run: cd web && npm run lint
|
2024-05-21 11:38:18 +00:00
|
|
|
|
|
|
|
- name: Format
|
|
|
|
run: cd web && npm run format
|