actions: run yarn prettier to check web app formatting
This commit is contained in:
parent
2f77b9e500
commit
bd22f00539
22
.github/workflows/yarnprettier.yml
vendored
Normal file
22
.github/workflows/yarnprettier.yml
vendored
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
name: Yarn Prettier
|
||||||
|
|
||||||
|
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: Check Formatting
|
||||||
|
run: yarn --cwd webapp prettier --check src/
|
||||||
Loading…
Reference in New Issue
Block a user