Use corepack instead of committing a version of yarn #6770
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: AR Validate | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- 'dotcom-rendering/**' | |
pull_request: | |
branches: | |
- main | |
paths-ignore: | |
- 'dotcom-rendering/**' | |
jobs: | |
validate: | |
name: AR Validate | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: corepack enable | |
- uses: actions/setup-node@v3 | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'yarn' | |
- run: yarn --frozen-lockfile | |
- name: lint | |
run: yarn lint | |
working-directory: apps-rendering | |
- name: test | |
run: yarn test | |
working-directory: apps-rendering | |
- name: compile client | |
run: yarn build:client:prod | |
working-directory: apps-rendering | |
- name: compile server | |
run: yarn build:server:prod | |
working-directory: apps-rendering |