2023-02-14 06:13:34 +02:00
|
|
|
name: Lint
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- develop
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
pnpm_install:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3.3.0
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
submodules: true
|
|
|
|
- uses: pnpm/action-setup@v2
|
|
|
|
with:
|
|
|
|
version: 7
|
|
|
|
run_install: false
|
|
|
|
- uses: actions/setup-node@v3.6.0
|
|
|
|
with:
|
|
|
|
node-version: 18.x
|
|
|
|
cache: 'pnpm'
|
|
|
|
- run: corepack enable
|
|
|
|
- run: pnpm i --frozen-lockfile
|
|
|
|
|
|
|
|
lint:
|
|
|
|
needs: [pnpm_install]
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
continue-on-error: true
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
workspace:
|
|
|
|
- backend
|
|
|
|
- frontend
|
|
|
|
- sw
|
2023-03-30 03:33:19 +03:00
|
|
|
- misskey-js
|
2023-02-14 06:13:34 +02:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3.3.0
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
submodules: true
|
|
|
|
- uses: pnpm/action-setup@v2
|
|
|
|
with:
|
|
|
|
version: 7
|
|
|
|
run_install: false
|
|
|
|
- uses: actions/setup-node@v3.6.0
|
|
|
|
with:
|
|
|
|
node-version: 18.x
|
|
|
|
cache: 'pnpm'
|
|
|
|
- run: corepack enable
|
|
|
|
- run: pnpm i --frozen-lockfile
|
2023-02-23 03:56:01 +02:00
|
|
|
- run: pnpm --filter ${{ matrix.workspace }} run eslint
|
2023-02-23 01:23:55 +02:00
|
|
|
|
|
|
|
typecheck:
|
|
|
|
needs: [pnpm_install]
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
continue-on-error: true
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
workspace:
|
|
|
|
- backend
|
2023-03-30 03:33:19 +03:00
|
|
|
- misskey-js
|
2023-02-23 01:23:55 +02:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3.3.0
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
submodules: true
|
|
|
|
- uses: pnpm/action-setup@v2
|
|
|
|
with:
|
|
|
|
version: 7
|
|
|
|
run_install: false
|
|
|
|
- uses: actions/setup-node@v3.6.0
|
|
|
|
with:
|
|
|
|
node-version: 18.x
|
|
|
|
cache: 'pnpm'
|
|
|
|
- run: corepack enable
|
|
|
|
- run: pnpm i --frozen-lockfile
|
2023-02-23 03:56:01 +02:00
|
|
|
- run: pnpm --filter ${{ matrix.workspace }} run typecheck
|