Skip to content

chore(.github/workflows): update github actions 'uses' to latest version #2908

chore(.github/workflows): update github actions 'uses' to latest version

chore(.github/workflows): update github actions 'uses' to latest version #2908

Workflow file for this run

name: Build
on:
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Read Node version
id: node_version
run: echo "NVMRC=$(cat .nvmrc)" >> $GITHUB_OUTPUT
- name: Set Node version
uses: actions/setup-node@v4
with:
node-version: '${{ steps.node_version.outputs.NVMRC }}'
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
- name: Install dependencies
if: steps.yarn-cache-dir-path.outputs.cache-hit != 'true'
run: yarn
- name: Run build
run: yarn build
- name: Run tests
run: yarn test:ci