Skip to content

Commit

Permalink
Update test-pull-request workflow
Browse files Browse the repository at this point in the history
Split to multiple jobs to avoid NO SPACE failure
  • Loading branch information
dshevtsov committed Apr 2, 2024
1 parent 4679026 commit 445c356
Showing 1 changed file with 27 additions and 6 deletions.
33 changes: 27 additions & 6 deletions .github/workflows/test-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ on: pull_request
# Set the Job #
###############
jobs:
validate:
lint:
# Set the agent to run on
runs-on: ubuntu-latest

Expand Down Expand Up @@ -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

0 comments on commit 445c356

Please sign in to comment.