mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-07-11 13:21:59 +00:00
move type checking to other workflow, fix TS errors, add TSC checking
This commit is contained in:
@@ -12,23 +12,12 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3 # Check out the repository first.
|
- uses: actions/checkout@v3 # Check out the repository first.
|
||||||
|
|
||||||
- name: Install Python dependencies
|
- name: Install TypeScript dependencies
|
||||||
run: |
|
|
||||||
python -m pip install --upgrade pip
|
|
||||||
[ -f requirements.txt ] && pip install -r requirements.txt
|
|
||||||
|
|
||||||
- name: Install JavaScript dependencies
|
|
||||||
working-directory: frontend
|
working-directory: frontend
|
||||||
run: |
|
run: |
|
||||||
npm i -g pnpm
|
npm i -g pnpm
|
||||||
pnpm i --frozen-lockfile
|
pnpm i --frozen-lockfile
|
||||||
|
|
||||||
- name: Run pyright (Python)
|
- name: Run prettier (TypeScript)
|
||||||
uses: jakebailey/pyright-action@v1
|
|
||||||
with:
|
|
||||||
python-version: "3.10.6"
|
|
||||||
no-comments: true
|
|
||||||
|
|
||||||
- name: Run prettier (JavaScript & TypeScript)
|
|
||||||
working-directory: frontend
|
working-directory: frontend
|
||||||
run: pnpm run lint
|
run: pnpm run lint
|
||||||
@@ -1,8 +1,7 @@
|
|||||||
name: Type Check
|
name: Type check
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
pull_request:
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
typecheck:
|
typecheck:
|
||||||
@@ -10,10 +9,9 @@ jobs:
|
|||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2 # Check out the repository first.
|
- uses: actions/checkout@v3 # Check out the repository first.
|
||||||
|
|
||||||
- name: Install Python dependencies
|
- name: Install Python dependencies
|
||||||
working-directory: backend
|
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
[ -f requirements.txt ] && pip install -r requirements.txt
|
[ -f requirements.txt ] && pip install -r requirements.txt
|
||||||
@@ -29,7 +27,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
python-version: "3.10.6"
|
python-version: "3.10.6"
|
||||||
no-comments: true
|
no-comments: true
|
||||||
working-directory: backend
|
|
||||||
|
|
||||||
- name: Run tsc (TypeScript)
|
- name: Run tsc (TypeScript)
|
||||||
working-directory: frontend
|
working-directory: frontend
|
||||||
|
|||||||
Reference in New Issue
Block a user