Move linters to separate workflow

This commit is contained in:
Sky Leite
2023-02-03 10:06:56 -03:00
parent d48fc885a3
commit 1379a40a89
2 changed files with 26 additions and 23 deletions
-23
View File
@@ -29,32 +29,9 @@ 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)
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
build:
name: Build PluginLoader
runs-on: ubuntu-20.04
needs: [lint]
steps:
- name: Print input
+26
View File
@@ -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