Skip to content

build(deps): bump the gh-actions group across 1 directory with 7 updates #1395

build(deps): bump the gh-actions group across 1 directory with 7 updates

build(deps): bump the gh-actions group across 1 directory with 7 updates #1395

Workflow file for this run

# This workflow will do a clean install of node dependencies, build the source code, and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Build PR
# If adding a step that requires SECRETS or WRITE ACCESS be sure to have dependabot skip it.
# > if: ${{ github.actor != 'dependabot[bot]' }}
on:
pull_request:
branches: [main]
jobs:
# This job will:
# * build each package
# * run unit tests
# * run the linter
build:
runs-on: ${{ matrix.os }}
env:
NODE_OPTIONS: '--max-old-space-size=6144'
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
node: [20, 22, 24]
steps:
- name: Checkout Code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
- name: Derive appropriate SHAs for base and head for `nx affected` commands
uses: nrwl/nx-set-shas@3e9ad7370203c1e93d109be57f3b72eb0eb511b1 # v4.4.0
- name: Set Node Version
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
with:
node-version: ${{ matrix.node }}
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
- name: Restore yarn cache
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-${{ matrix.node }}-yarn-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-${{ matrix.node }}-yarn-
# - name: Artifactory Check
# run: yarn check:registry
- name: Install Dependencies
run: yarn install --immutable
- name: Build packages
run: yarn build
- name: Build Docs
if: ${{ matrix.node == 24 }}
run: yarn build:storybook
- name: Lint
run: yarn lint:affected
- name: Unit Test
run: yarn test:affected
- name: Version Bump Dry Run (only run for ubuntu-latest-24 matching deploy action)
if: ${{ matrix.node == 24 && matrix.os == 'ubuntu-latest' }}
run: yarn version:dry-run
# - name: Upload coverage report
# uses: codecov/codecov-action@v3 # FIXME: no CI provider detected
# with:
# file: ./coverage/coverage-final.json
# token: ${{ secrets.CODECOV_TOKEN }}
# - name: Build Docs (Node 16+ Only)
# if: ${{matrix.node > 14}}
# run: yarn build:docs
# - name: Build Storybook
# run: yarn build:storybook