1
0
mirror of https://github.com/misskey-dev/misskey synced 2024-12-23 02:58:30 +09:00
misskey/.github/workflows/lint.yml
2023-01-15 16:03:18 +09:00

47 lines
965 B
YAML

name: Lint
on:
push:
branches:
- master
- develop
pull_request:
jobs:
yarn_install:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.3.0
with:
fetch-depth: 0
submodules: true
- uses: actions/setup-node@v3.6.0
with:
node-version: 18.x
cache: 'yarn'
- run: corepack enable
- run: yarn install --immutable
lint:
needs: [yarn_install]
runs-on: ubuntu-latest
continue-on-error: true
strategy:
matrix:
workspace:
- backend
- frontend
- sw
steps:
- uses: actions/checkout@v3.3.0
with:
fetch-depth: 0
submodules: true
- uses: actions/setup-node@v3.6.0
with:
node-version: 18.x
cache: 'yarn'
- run: corepack enable
- run: yarn install --immutable
- run: yarn workspace ${{ matrix.workspace }} run lint