From d1185514051bc62d9482904ebd621d330f3c438f Mon Sep 17 00:00:00 2001 From: Marshall Polaris Date: Sat, 21 May 2022 12:51:31 -0700 Subject: [PATCH] Switch check workflow to use single job --- .github/workflows/check.yml | 40 ++++++++++--------------------------- 1 file changed, 10 insertions(+), 30 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index be720d5c..bdf3261b 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -7,8 +7,8 @@ on: branches: [main] jobs: - setup: - name: Set up test environment + check: + name: Perform static analysis checks runs-on: ubuntu-latest permissions: contents: read @@ -23,31 +23,11 @@ jobs: cache: 'yarn' - name: Install dependencies run: yarn install --frozen-lockfile - - prettier: - needs: setup - name: Run Prettier - runs-on: ubuntu-latest - steps: - - run: npx prettier . - - 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 + - name: Run Prettier + run: npx prettier . + - name: Run ESLint on web client + run: cd web && yarn lint + - name: Run Typescript checker on web client + run: tsc --pretty --project web/tsconfig.json --noEmit + - name: Run Typescript checker on cloud functions + run: tsc --pretty --project functions/tsconfig.json --noEmit