2022-04-22 20:41:04 -07:00
|
|
|
name: Lint
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- develop
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
2023-01-15 13:08:42 -08:00
|
|
|
pnpm_install:
|
2022-12-07 10:18:15 -08:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-01-14 23:03:18 -08:00
|
|
|
- uses: actions/checkout@v3.3.0
|
2022-12-07 10:18:15 -08:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
submodules: true
|
2023-01-15 13:08:42 -08:00
|
|
|
- uses: pnpm/action-setup@v2
|
|
|
|
with:
|
|
|
|
version: 7
|
|
|
|
run_install: false
|
2023-01-14 22:58:10 -08:00
|
|
|
- uses: actions/setup-node@v3.6.0
|
2022-12-07 10:18:15 -08:00
|
|
|
with:
|
|
|
|
node-version: 18.x
|
2023-01-15 13:08:42 -08:00
|
|
|
cache: 'pnpm'
|
2022-12-07 10:18:15 -08:00
|
|
|
- run: corepack enable
|
2023-01-15 13:08:42 -08:00
|
|
|
- run: pnpm i --frozen-lockfile
|
2022-12-07 10:18:15 -08:00
|
|
|
|
2022-11-23 22:39:00 -08:00
|
|
|
lint:
|
2023-01-15 13:08:42 -08:00
|
|
|
needs: [pnpm_install]
|
2022-12-07 10:18:15 -08:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
continue-on-error: true
|
2022-11-23 22:39:00 -08:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
workspace:
|
|
|
|
- backend
|
2022-12-26 21:36:33 -08:00
|
|
|
- frontend
|
2022-12-05 05:21:44 -08:00
|
|
|
- sw
|
2022-04-22 20:41:04 -07:00
|
|
|
steps:
|
2023-01-14 23:03:18 -08:00
|
|
|
- uses: actions/checkout@v3.3.0
|
2022-04-22 20:41:04 -07:00
|
|
|
with:
|
2022-11-23 22:39:00 -08:00
|
|
|
fetch-depth: 0
|
2022-04-22 20:41:04 -07:00
|
|
|
submodules: true
|
2023-01-15 13:08:42 -08:00
|
|
|
- uses: pnpm/action-setup@v2
|
|
|
|
with:
|
|
|
|
version: 7
|
|
|
|
run_install: false
|
2023-01-14 22:58:10 -08:00
|
|
|
- uses: actions/setup-node@v3.6.0
|
2022-04-22 20:41:04 -07:00
|
|
|
with:
|
2022-04-28 18:17:03 -07:00
|
|
|
node-version: 18.x
|
2023-01-15 13:08:42 -08:00
|
|
|
cache: 'pnpm'
|
2022-11-23 22:39:00 -08:00
|
|
|
- run: corepack enable
|
2023-01-15 13:08:42 -08:00
|
|
|
- run: pnpm i --frozen-lockfile
|
|
|
|
- run: pnpm --filter ${{ matrix.workspace }} run lint
|