mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-11-25 23:38:26 +01:00
cee1d5e2d0
* Additional changes for the merge * api-misskey-js
81 lines
1.7 KiB
YAML
81 lines
1.7 KiB
YAML
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
|
|
- misskey-js
|
|
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
|
|
- run: pnpm --filter ${{ matrix.workspace }} run eslint
|
|
|
|
typecheck:
|
|
needs: [pnpm_install]
|
|
runs-on: ubuntu-latest
|
|
continue-on-error: true
|
|
strategy:
|
|
matrix:
|
|
workspace:
|
|
- backend
|
|
- misskey-js
|
|
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
|
|
- run: pnpm --filter ${{ matrix.workspace }} run typecheck
|