
When we merge main into a deploy/* branch (e.g. https://github.com/ente-io/ente/pull/1147), all changes get pulled in not just the one related to that deployment, and this causes almost all of the path based workflows to run again unnecessarily. Exclude the various "deploy/**" branches to stop these unnecessary workflows from being triggered.
30 lines
750 B
YAML
30 lines
750 B
YAML
name: "Lint (web)"
|
|
|
|
on:
|
|
# Run on every push to a branch other than main that changes web/
|
|
push:
|
|
branches-ignore: [main, "deploy/**"]
|
|
paths:
|
|
- "web/**"
|
|
- ".github/workflows/web-lint.yml"
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: web
|
|
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: "web/yarn.lock"
|
|
|
|
- run: yarn install
|
|
|
|
- run: yarn lint
|