this allows us to fix the version of yarn, the Node.js package manager, to a particular version. using corepack is the recommended way to use yarn these days.
29 lines
578 B
YAML
29 lines
578 B
YAML
name: Yarn Linting
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
defaults:
|
|
run:
|
|
working-directory: webapp
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Enable Corepack
|
|
run: corepack enable
|
|
- name: Setup Node.js and yarn
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "20"
|
|
cache: "yarn"
|
|
cache-dependency-path: "webapp/yarn.lock"
|
|
|
|
- name: Install WebApp dependencies
|
|
run: yarn install --frozen-lockfile
|
|
|
|
- name: Linting
|
|
run: yarn lint
|