refactor(meta): split package lints into separate workflows (#8530)

This commit is contained in:
Andreas Nedbal 2022-04-23 05:41:04 +02:00 committed by GitHub
parent 29b9d8998a
commit 92762223ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,25 +1,39 @@
name: Lint name: Lint
on: on:
push: push:
branches: branches:
- master - master
- develop - develop
pull_request: pull_request:
jobs: jobs:
lint: backend:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with: with:
submodules: true submodules: true
- uses: actions/setup-node@v3 - uses: actions/setup-node@v3
with: with:
node-version: 16.x node-version: 16.x
cache: 'yarn' cache: 'yarn'
cache-dependency-path: | cache-dependency-path: |
packages/backend/yarn.lock packages/backend/yarn.lock
packages/client/yarn.lock - run: yarn install
- run: yarn install - run: yarn --cwd ./packages/backend lint
- run: yarn lint
client:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: actions/setup-node@v3
with:
node-version: 16.x
cache: 'yarn'
cache-dependency-path: |
packages/client/yarn.lock
- run: yarn install
- run: yarn --cwd ./packages/client lint