Skip to content

Change root into Yarn project with workspace #356

Change root into Yarn project with workspace

Change root into Yarn project with workspace #356

Workflow file for this run

name: Validate SIP
on:
pull_request:
# paths:
# - "SIPS/**"
jobs:
validate:
name: Validate SIPs
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Corepack via Node
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- name: Install Yarn
run: corepack enable
- name: Install Node.js and restore Yarn cache
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: yarn
- name: Install dependencies
run: yarn --immutable
- name: Build
run: yarn workspace validate build
- name: Validate all SIPs
run: yarn workspace validate lint
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_PULL_REQUEST: ${{ github.event.pull_request.number }}
GITHUB_SHA_PULL_REQUEST: ${{ github.event.pull_request.head.sha }}
FORCE_COLOR: 3
- name: Require clean working directory
shell: bash
run: |
if ! git diff --exit-code; then
echo "Working tree dirty at end of job"
exit 1
fi