summaryrefslogtreecommitdiffhomepage
path: root/.github/workflows/lint.yml
diff options
context:
space:
mode:
authorJohannes Theiner <[email protected]>2025-07-04 13:27:53 +0200
committerJohannes Theiner <[email protected]>2025-07-04 13:27:53 +0200
commitdbc9096f8159f87ff58a8f03e0a5fc0186df5496 (patch)
treec7e50617efdb47babfefa2485dd8e16dc22eeed1 /.github/workflows/lint.yml
parent90290a8af5bd9c7b0d43418c5c06cfd319ecb295 (diff)
downloadai-pulse-obsidian-plugin-dbc9096f8159f87ff58a8f03e0a5fc0186df5496.tar.gz
ai-pulse-obsidian-plugin-dbc9096f8159f87ff58a8f03e0a5fc0186df5496.zip
Add lint action
Diffstat (limited to '.github/workflows/lint.yml')
-rw-r--r--.github/workflows/lint.yml28
1 files changed, 28 insertions, 0 deletions
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
new file mode 100644
index 0000000..685cf90
--- /dev/null
+++ b/.github/workflows/lint.yml
@@ -0,0 +1,28 @@
+name: Node.js build
+
+on:
+ push:
+ branches: ["master"]
+ pull_request:
+ branches: ["master"]
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+
+ strategy:
+ matrix:
+ node-version: [18.x, 20.x, 22.x]
+ # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
+
+ steps:
+ - uses: actions/checkout@v4
+ - name: Use Node.js ${{ matrix.node-version }}
+ uses: actions/setup-node@v4
+ with:
+ node-version: ${{ matrix.node-version }}
+ cache: "npm"
+ - run: npm ci
+ - run: npm run build --if-present
+ - run: npm run lint
+