Skip to content

Use corrent Node and Yarn version in PR workflow #110

Use corrent Node and Yarn version in PR workflow

Use corrent Node and Yarn version in PR workflow #110

name: Pull Request Build & Test
on:
pull_request:
workflow_dispatch:
jobs:
build-and-test:
name: PR Build & Test
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@master
- name: Enable Corepack
run: corepack enable
- name: Setup Node
uses: actions/setup-node@v4
with:
cache: yarn
node-version-file: .nvmrc
- name: Install Dependencies
run: yarn install --immutable
- name: Lint
run: yarn lint
- name: Test
run: yarn test
- name: Build
run: yarn build