2024-04-30 13:27:19 +00:00
|
|
|
name: "Lint (desktop)"
|
|
|
|
|
|
|
|
on:
|
|
|
|
# Run on every push to a branch other than main that changes desktop/
|
|
|
|
push:
|
2024-05-10 13:41:59 +00:00
|
|
|
branches-ignore: [main]
|
2024-04-30 13:27:19 +00:00
|
|
|
paths:
|
|
|
|
- "desktop/**"
|
|
|
|
- ".github/workflows/desktop-lint.yml"
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
lint:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
working-directory: desktop
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- name: Setup node and enable yarn caching
|
|
|
|
uses: actions/setup-node@v4
|
|
|
|
with:
|
|
|
|
node-version: 20
|
|
|
|
cache: "yarn"
|
|
|
|
cache-dependency-path: "desktop/yarn.lock"
|
|
|
|
|
|
|
|
- run: yarn install
|
|
|
|
|
|
|
|
- run: yarn lint
|