Switch check workflow to use single job
This commit is contained in:
parent
c0cc9cdb7a
commit
d118551405
40
.github/workflows/check.yml
vendored
40
.github/workflows/check.yml
vendored
|
@ -7,8 +7,8 @@ on:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
setup:
|
check:
|
||||||
name: Set up test environment
|
name: Perform static analysis checks
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
@ -23,31 +23,11 @@ jobs:
|
||||||
cache: 'yarn'
|
cache: 'yarn'
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: yarn install --frozen-lockfile
|
run: yarn install --frozen-lockfile
|
||||||
|
- name: Run Prettier
|
||||||
prettier:
|
run: npx prettier .
|
||||||
needs: setup
|
- name: Run ESLint on web client
|
||||||
name: Run Prettier
|
run: cd web && yarn lint
|
||||||
runs-on: ubuntu-latest
|
- name: Run Typescript checker on web client
|
||||||
steps:
|
run: tsc --pretty --project web/tsconfig.json --noEmit
|
||||||
- run: npx prettier .
|
- name: Run Typescript checker on cloud functions
|
||||||
|
run: tsc --pretty --project functions/tsconfig.json --noEmit
|
||||||
eslint:
|
|
||||||
needs: setup
|
|
||||||
name: Run ESLint on web client
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- run: cd web && yarn lint
|
|
||||||
|
|
||||||
tsc-web:
|
|
||||||
needs: setup
|
|
||||||
name: Run Typescript checker on web client
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- run: tsc --pretty --project web/tsconfig.json --noEmit
|
|
||||||
|
|
||||||
tsc-functions:
|
|
||||||
needs: setup
|
|
||||||
name: Run Typescript checker on cloud functions
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- run: tsc --pretty --project functions/tsconfig.json --noEmit
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user