Files
desktop/.github/workflows/code-linter.yml
mr. m 37eed5fcfe fix: Start working on more eslint rules, p=#11874
* fix: Start working on more eslint rules, b=no-bug, c=common, mods, workspaces

* chore: Continue migration, b=no-bug, c=workflows, windows, glance, mods, welcome, workspaces, common, compact-mode, folders, tests, kbs, media, split-view, tabs

* chore: Finish, b=no-bug, c=common, compact-mode, folders, glance, tests, kbs, media, mods, split-view, tabs, workspaces, welcome

* fix: Fix installing deps, b=no-bug, c=common

* feat: Dont initialize git on download checks, b=no-bug, c=workflows

* feat: Remove empty JS docs, b=no-bug, c=common, compact-mode, folders, glance, kbs, media, mods, split-view, tabs, tests, workspaces

* chore: Run lint, b=no-bug, c=common, folders, glance, kbs, mods, split-view, tabs, workspaces
2026-01-12 15:11:43 +01:00

44 lines
1.0 KiB
YAML

name: Code Linter
on:
push:
branches:
- dev
workflow_call:
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
if: ${{ !contains(github.event.head_commit.message, '[no-lint]') }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
- name: Download Firefox
env:
ZEN_DOWNLOAD_DONT_INIT_GIT: "1"
run: |
npm run download
- name: Setup and run autopep8
if: ${{ contains(join(github.event.commits.*.modified, ' '), '.py') || contains(join(github.event.commits.*.added, ' '), '.py') || contains(join(github.event.commits.*.removed, ' '), '.py') }}
run: |
sudo apt install python3-autopep8
autopep8 --diff scripts/ src/
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint