From 1379a40a895873827be1a2e4b280f986dadd0b38 Mon Sep 17 00:00:00 2001 From: Sky Leite Date: Fri, 3 Feb 2023 10:06:56 -0300 Subject: Move linters to separate workflow --- .github/workflows/lint.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/lint.yml (limited to '.github/workflows/lint.yml') 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 -- cgit v1.2.3