mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-07-11 21:22:01 +00:00
Move linters to separate workflow
This commit is contained in:
@@ -29,32 +29,9 @@ permissions:
|
|||||||
contents: write
|
contents: write
|
||||||
|
|
||||||
jobs:
|
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:
|
build:
|
||||||
name: Build PluginLoader
|
name: Build PluginLoader
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
needs: [lint]
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Print input
|
- name: Print input
|
||||||
|
|||||||
@@ -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
|
||||||
Reference in New Issue
Block a user