about summary refs log tree commit diff stats
path: root/.forgejo
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2026-06-13 13:48:16 +0300
committerAndrew Dolgov <fox@fakecake.org>2026-06-13 13:48:16 +0300
commit5a04ba24d8ea3473c52b5bfb76e35e8d82be3d08 (patch)
tree6669ae544c7703bfa8e44c160487a8703041d4e3 /.forgejo
parente97d4c6a9fc5328865ddba9eecd2afbdd87b3b20 (diff)
downloadthe-epube-5a04ba24d8ea3473c52b5bfb76e35e8d82be3d08.tar.gz
the-epube-5a04ba24d8ea3473c52b5bfb76e35e8d82be3d08.tar.xz
try adding basic action
Diffstat (limited to '.forgejo')
-rw-r--r--.forgejo/workflows/lint.yml34
1 files changed, 34 insertions, 0 deletions
diff --git a/.forgejo/workflows/lint.yml b/.forgejo/workflows/lint.yml
new file mode 100644
index 0000000..5b711ff
--- /dev/null
+++ b/.forgejo/workflows/lint.yml
@@ -0,0 +1,34 @@
+name: Linting
+
+on:
+  env:
+    ESLINT_PATHS: "src/"
+
+  # enable button in web ui
+  workflow_dispatch:
+
+  # runs on branch push if there are changes to js files
+  push:
+    branches:
+      - '**'
+    paths:
+      - 'src/**/*.js'
+
+jobs:
+  eslint:
+    runs-on: codeberg-tiny
+
+    steps:
+    - name: Checkout code
+      uses: https://codeberg.org
+
+    - name: Setup Node.js and Cache
+      uses: https://github.com
+      with:
+        node-version: '20'
+        cache: 'npm'
+
+    - name: Install and Run ESLint
+      run: |
+        npm ci
+        npx eslint ${ESLINT_PATHS}