From c1a679bf2a9f6c624ed54f29a546bfa64b381565 Mon Sep 17 00:00:00 2001 From: Marc Rousavy Date: Tue, 23 Feb 2021 14:52:41 +0100 Subject: [PATCH] Merge Validate JS into single job --- .github/workflows/validate-js.yml | 48 ++----------------------------- 1 file changed, 2 insertions(+), 46 deletions(-) diff --git a/.github/workflows/validate-js.yml b/.github/workflows/validate-js.yml index c2930cc..4d4e09c 100644 --- a/.github/workflows/validate-js.yml +++ b/.github/workflows/validate-js.yml @@ -19,30 +19,8 @@ on: - 'package.json' jobs: - setup: - name: Setup node_modules - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - - name: Get yarn cache directory path - id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(yarn cache dir)" - - uses: actions/cache@v2 - id: yarn-cache - with: - path: ${{ steps.yarn-cache-dir-path.outputs.dir }} - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - ${{ runner.os }}-yarn- - - - name: Install modules - run: yarn - - name: Install modules (example/) - run: yarn example - tsc: - name: Run TypeScript - needs: setup + vibe_check: + name: Validate JS (tsc, eslint, prettier) runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -65,28 +43,6 @@ jobs: - name: Run TypeScript run: yarn typescript - lint: - name: Run ESLint and Prettier - needs: setup - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - - name: Get yarn cache directory path - id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(yarn cache dir)" - - uses: actions/cache@v2 - id: yarn-cache - with: - path: ${{ steps.yarn-cache-dir-path.outputs.dir }} - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - ${{ runner.os }}-yarn- - - - name: Install modules - run: yarn - - name: Install modules (example/) - run: yarn example - name: Run ESLint run: yarn lint-ci