Sfoglia il codice sorgente

autolint action for the website

Nikita Krupin 3 anni fa
parent
commit
202b8c94c6
1 ha cambiato i file con 28 aggiunte e 0 eliminazioni
  1. 28 0
      .github/weblint.yml

+ 28 - 0
.github/weblint.yml

@@ -0,0 +1,28 @@
+# This workflow lints the code in /Website, if any was committed
+
+name: Website Lint
+
+on:
+  push:
+    branches: [ main ]
+    paths:
+      - Website/**
+
+  pull_request:
+    branches: [ main ]
+    paths:
+      - Website/**
+
+jobs:
+  lint:
+
+    runs-on: ubuntu-latest
+
+    steps:
+    - uses: actions/checkout@main
+    - name: npm install
+      run: npm install
+      working-directory: Website
+    - name: npm run lint
+      run: npm run lint
+      working-directory: Website