Skip to content

Commit

Permalink
Merge branch 'master' into update-node-version-matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
danielpza authored Aug 6, 2024
2 parents 3fa8f04 + 4df7d59 commit c4d37bc
Showing 1 changed file with 7 additions and 18 deletions.
25 changes: 7 additions & 18 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
with:
node-version: 22
cache: yarn
cache-dependency-path: "**/yarn.lock"
- run: yarn install
- run: yarn prettier --check .

Expand All @@ -23,34 +24,22 @@ jobs:
node-version: [18, 20, 22]

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Determine Yarn Cache Path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/checkout@v4

- uses: actions/cache@v4
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- run: corepack enable

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: yarn
cache-dependency-path: "**/yarn.lock"

- name: Install Packages
run: yarn install --frozen-lockfile
- run: yarn install --frozen-lockfile

- name: Build
run: yarn build
- run: yarn build

- name: Test
run: yarn test --runInBand=false --maxWorkers=2 --workerIdleMemoryLimit=2GB # https://github.com/facebook/jest/issues/11956
env:
CI: true
NODE_OPTIONS: --max_old_space_size=4096

0 comments on commit c4d37bc

Please sign in to comment.