2022-04-22 22:41:04 -05:00
|
|
|
name: Lint
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- develop
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
2022-12-07 12:18:15 -06:00
|
|
|
yarn_install:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-01-15 01:03:18 -06:00
|
|
|
- uses: actions/checkout@v3.3.0
|
2022-12-07 12:18:15 -06:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
submodules: true
|
2023-01-15 00:58:10 -06:00
|
|
|
- uses: actions/setup-node@v3.6.0
|
2022-12-07 12:18:15 -06:00
|
|
|
with:
|
|
|
|
node-version: 18.x
|
|
|
|
cache: 'yarn'
|
|
|
|
- run: corepack enable
|
|
|
|
- run: yarn install --immutable
|
|
|
|
|
2022-11-24 00:39:00 -06:00
|
|
|
lint:
|
2022-12-07 12:18:15 -06:00
|
|
|
needs: [yarn_install]
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
continue-on-error: true
|
2022-11-24 00:39:00 -06:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
workspace:
|
|
|
|
- backend
|
2022-12-26 23:36:33 -06:00
|
|
|
- frontend
|
2022-12-05 07:21:44 -06:00
|
|
|
- sw
|
2022-04-22 22:41:04 -05:00
|
|
|
steps:
|
2023-01-15 01:03:18 -06:00
|
|
|
- uses: actions/checkout@v3.3.0
|
2022-04-22 22:41:04 -05:00
|
|
|
with:
|
2022-11-24 00:39:00 -06:00
|
|
|
fetch-depth: 0
|
2022-04-22 22:41:04 -05:00
|
|
|
submodules: true
|
2023-01-15 00:58:10 -06:00
|
|
|
- uses: actions/setup-node@v3.6.0
|
2022-04-22 22:41:04 -05:00
|
|
|
with:
|
2022-04-28 20:17:03 -05:00
|
|
|
node-version: 18.x
|
2022-04-22 22:41:04 -05:00
|
|
|
cache: 'yarn'
|
2022-11-24 00:39:00 -06:00
|
|
|
- run: corepack enable
|
|
|
|
- run: yarn install --immutable
|
|
|
|
- run: yarn workspace ${{ matrix.workspace }} run lint
|