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