mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-14 09:13:08 +02:00
39 lines
835 B
YAML
39 lines
835 B
YAML
name: Lint
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- develop
|
|
pull_request:
|
|
|
|
jobs:
|
|
backend:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
submodules: true
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 18.x
|
|
cache: 'yarn'
|
|
cache-dependency-path: |
|
|
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: 18.x
|
|
cache: 'yarn'
|
|
cache-dependency-path: |
|
|
packages/client/yarn.lock
|
|
- run: yarn install
|
|
- run: yarn --cwd ./packages/client lint
|