Run automatic linting for the webapp
This commit is contained in:
parent
69838ba0cc
commit
f1b0558913
22
.github/workflows/yarnlint.yml
vendored
Normal file
22
.github/workflows/yarnlint.yml
vendored
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
name: Yarn Linting
|
||||||
|
|
||||||
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Setup Node.js and yarn
|
||||||
|
uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: "18"
|
||||||
|
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
|
||||||
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
[](https://github.com/tbnobody/OpenDTU/actions/workflows/build.yml)
|
[](https://github.com/tbnobody/OpenDTU/actions/workflows/build.yml)
|
||||||
[](https://github.com/tbnobody/OpenDTU/actions/workflows/cpplint.yml)
|
[](https://github.com/tbnobody/OpenDTU/actions/workflows/cpplint.yml)
|
||||||
|
[](https://github.com/tbnobody/OpenDTU/actions/workflows/yarnlint.yml)
|
||||||
|
|
||||||
## !! IMPORTANT UPGRADE NOTES !!
|
## !! IMPORTANT UPGRADE NOTES !!
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user