2024-03-04 05:31:27 +00:00
|
|
|
name: "Lint (web)"
|
2024-02-17 07:32:15 +00:00
|
|
|
|
|
|
|
on:
|
2024-03-12 08:44:18 +00:00
|
|
|
# Run on every push to a branch other than main that changes web/
|
2024-02-17 07:32:15 +00:00
|
|
|
push:
|
2024-05-10 13:41:59 +00:00
|
|
|
branches-ignore: [main]
|
2024-03-04 05:31:27 +00:00
|
|
|
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
|
2024-03-04 07:30:12 +00:00
|
|
|
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
|