From 52777bc2a4bb719acffc6601b8f5b76e7ffdcadb Mon Sep 17 00:00:00 2001 From: Sky Leite Date: Thu, 2 Feb 2023 18:46:57 -0300 Subject: Add lint job to build workflow --- .github/workflows/build.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to '.github/workflows/build.yml') diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cb72821a..e36a50ae 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -29,9 +29,31 @@ permissions: contents: write 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) + uses: creyD/prettier_action@v4.2 + with: + dry: True + prettier_options: --config ./frontend/.prettierrc.js --check + + - name: Run ruff (Python) + uses: jpetrucciani/ruff-check@0.0.239 + with: + path: './backend' + + - name: Run ShellCheck + uses: ludeeus/action-shellcheck@master + + build: name: Build PluginLoader runs-on: ubuntu-20.04 + needs: [lint] steps: - name: Print input -- cgit v1.2.3