summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSky Leite <sky@leite.dev>2023-02-04 00:40:29 -0300
committerGitHub <noreply@github.com>2023-02-03 19:40:29 -0800
commit0b718daa47a957f90066859ab96a3ca6f9253575 (patch)
treef3bf829a57bd399f5317a25ecc7a50a30d703555
parent0929b9c5cb3dea7620b6bee495b4608e42696a1a (diff)
downloaddecky-loader-0b718daa47a957f90066859ab96a3ca6f9253575.tar.gz
decky-loader-0b718daa47a957f90066859ab96a3ca6f9253575.zip
Add lint job to build workflow (#363)
* Add lint job to build workflow * Add prettier-plugin-import-sort * Install prettier plugins before linting * Use lint script from package.json * Move linters to separate workflow * Remove Python and Shell linters * Remove popd * Test that prettier properly fails the lint job
-rw-r--r--.github/workflows/lint.yml17
1 files changed, 17 insertions, 0 deletions
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
new file mode 100644
index 00000000..1d9444f6
--- /dev/null
+++ b/.github/workflows/lint.yml
@@ -0,0 +1,17 @@
+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