refactor ci

This commit is contained in:
syuilo 2023-02-23 10:56:01 +09:00
parent ce5c78d0d2
commit d2ef0efbff

View file

@ -36,8 +36,6 @@ jobs:
- backend - backend
- frontend - frontend
- sw - sw
lint:
- eslint
steps: steps:
- uses: actions/checkout@v3.3.0 - uses: actions/checkout@v3.3.0
with: with:
@ -53,7 +51,7 @@ jobs:
cache: 'pnpm' cache: 'pnpm'
- run: corepack enable - run: corepack enable
- run: pnpm i --frozen-lockfile - run: pnpm i --frozen-lockfile
- run: pnpm --filter ${{ matrix.workspace }} run ${{ matrix.lint }} - run: pnpm --filter ${{ matrix.workspace }} run eslint
typecheck: typecheck:
needs: [pnpm_install] needs: [pnpm_install]
@ -63,8 +61,6 @@ jobs:
matrix: matrix:
workspace: workspace:
- backend - backend
typecheck:
- typecheck
steps: steps:
- uses: actions/checkout@v3.3.0 - uses: actions/checkout@v3.3.0
with: with:
@ -80,4 +76,4 @@ jobs:
cache: 'pnpm' cache: 'pnpm'
- run: corepack enable - run: corepack enable
- run: pnpm i --frozen-lockfile - run: pnpm i --frozen-lockfile
- run: pnpm --filter ${{ matrix.workspace }} run ${{ matrix.typecheck }} - run: pnpm --filter ${{ matrix.workspace }} run typecheck