ente/.github/workflows/web-lint.yml

31 lines
765 B
YAML
Raw Normal View History

name: "Lint (web)"
2024-02-17 07:32:15 +00:00
on:
# Run on every push to a branch other than main that changes web/
2024-02-17 07:32:15 +00:00
push:
2024-05-08 09:57:59 +00:00
branches-ignore: [main, "deploy/**", "deploy-f/**"]
paths:
2024-03-04 06:05:42 +00:00
- "web/**"
2024-03-04 10:29:08 +00:00
- ".github/workflows/web-lint.yml"
2024-02-17 07:32:15 +00:00
jobs:
lint:
runs-on: ubuntu-latest
defaults:
run:
working-directory: web
2024-02-17 07:32:15 +00:00
steps:
2024-03-05 11:03:20 +00:00
- name: Checkout code
uses: actions/checkout@v4
- name: Setup node and enable yarn caching
uses: actions/setup-node@v4
2024-03-04 10:28:16 +00:00
with:
node-version: 20
2024-03-04 10:29:46 +00:00
cache: "yarn"
2024-03-04 10:31:36 +00:00
cache-dependency-path: "web/yarn.lock"
2024-03-05 11:03:20 +00:00
2024-02-17 07:32:15 +00:00
- run: yarn install
2024-03-05 11:03:20 +00:00
2024-02-17 07:32:15 +00:00
- run: yarn lint