From 445c356bdaa8392d3d4679e4fc422c7607882fcb Mon Sep 17 00:00:00 2001 From: Dmytro Shevtsov Date: Tue, 2 Apr 2024 12:28:55 -0500 Subject: [PATCH] Update test-pull-request workflow Split to multiple jobs to avoid NO SPACE failure --- .github/workflows/test-pull-request.yml | 33 ++++++++++++++++++++----- 1 file changed, 27 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test-pull-request.yml b/.github/workflows/test-pull-request.yml index 4fa17a5c..9a76c5ae 100644 --- a/.github/workflows/test-pull-request.yml +++ b/.github/workflows/test-pull-request.yml @@ -20,7 +20,7 @@ on: pull_request # Set the Job # ############### jobs: - validate: + lint: # Set the agent to run on runs-on: ubuntu-latest @@ -62,19 +62,40 @@ jobs: VALIDATE_ALL_CODEBASE: false VALIDATE_GITHUB_ACTIONS: true + test: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: Setup Node uses: actions/setup-node@v3 with: node-version-file: '.nvmrc' + cache: 'yarn' + cache-dependency-path: 'yarn.lock' - - name: Install Dependencies + - name: Install dependencies run: yarn install - env: - YARN_ENABLE_IMMUTABLE_INSTALLS: false - - name: Check links + - name: Run tests run: yarn test + + build: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Node + uses: actions/setup-node@v3 + with: + node-version-file: '.nvmrc' + cache: 'yarn' + cache-dependency-path: 'yarn.lock' + + - name: Install dependencies + run: yarn install - name: Build site - if: ${{ success() }} run: yarn build