Skip to content

Update deployment actions #283

Update deployment actions

Update deployment actions #283

Workflow file for this run

name: build
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Enable Corepack
run: corepack enable
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: 'yarn'
- name: Install dependencies
run: yarn install
- name: Lint files
run: yarn run lint
- name: Build library and website
run: yarn run build
- name: Run unit tests
run: yarn test
test-deploy:
name: Test deployment
needs: build # make the build job run first
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Enable Corepack
run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 22
cache: yarn
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Test build website
run: yarn build