summaryrefslogtreecommitdiff
path: root/.github/workflows/lint.yml
diff options
context:
space:
mode:
authorSky Leite <sky@leite.dev>2023-02-03 10:06:56 -0300
committerSky Leite <sky@leite.dev>2023-02-03 10:07:16 -0300
commit1379a40a895873827be1a2e4b280f986dadd0b38 (patch)
treebe4474da006ced67b3829b9336a7e0541ac2018e /.github/workflows/lint.yml
parentd48fc885a3cf97a1fa663dd3439e6aeea0b8c6d9 (diff)
downloaddecky-loader-1379a40a895873827be1a2e4b280f986dadd0b38.tar.gz
decky-loader-1379a40a895873827be1a2e4b280f986dadd0b38.zip
Move linters to separate workflow
Diffstat (limited to '.github/workflows/lint.yml')
-rw-r--r--.github/workflows/lint.yml26
1 files changed, 26 insertions, 0 deletions
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
new file mode 100644
index 00000000..b4a01172
--- /dev/null
+++ b/.github/workflows/lint.yml
@@ -0,0 +1,26 @@
+name: Lint
+
+on:
+ push:
+
+jobs:
+ lint:
+ name: Run linters
+ runs-on: ubuntu-20.04
+
+ steps:
+ - uses: actions/checkout@v2 # Check out the repository first.
+ - name: Run prettier (JavaScript & TypeScript)
+ run: |
+ pushd frontend
+ npm install
+ npm run lint
+ popd
+
+ - name: Run ruff (Python)
+ uses: jpetrucciani/ruff-check@0.0.239
+ with:
+ path: "./backend"
+
+ - name: Run ShellCheck
+ uses: ludeeus/action-shellcheck@master