actions: run yarn prettier to check web app formatting #199
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: Yarn Linting | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- 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 --cwd webapp install --frozen-lockfile | |
- name: Linting | |
run: yarn --cwd webapp lint |