Better Support for Solarflow Batteries without Cloud #1594
Workflow file for this run
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 | |
# prevent push event from triggering if it's part of a PR | |
if: github.event_name != 'push' || github.event.pull_request == null | |
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: "22" | |
cache: "yarn" | |
cache-dependency-path: "webapp/yarn.lock" | |
- name: Install WebApp dependencies | |
run: yarn install --frozen-lockfile | |
- name: Linting | |
run: yarn lint |