mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-02 11:33:08 +02:00
refactor(meta): split package lints into separate workflows (#8530)
This commit is contained in:
parent
29b9d8998a
commit
92762223ea
1 changed files with 39 additions and 25 deletions
18
.github/workflows/lint.yml
vendored
18
.github/workflows/lint.yml
vendored
|
@ -8,7 +8,7 @@ on:
|
||||||
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
|
||||||
|
@ -20,6 +20,20 @@ jobs:
|
||||||
cache: 'yarn'
|
cache: 'yarn'
|
||||||
cache-dependency-path: |
|
cache-dependency-path: |
|
||||||
packages/backend/yarn.lock
|
packages/backend/yarn.lock
|
||||||
|
- run: yarn install
|
||||||
|
- run: yarn --cwd ./packages/backend 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
|
packages/client/yarn.lock
|
||||||
- run: yarn install
|
- run: yarn install
|
||||||
- run: yarn lint
|
- run: yarn --cwd ./packages/client lint
|
||||||
|
|
Loading…
Reference in a new issue