summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAAGaming <aagaming@riseup.net>2023-09-25 13:23:38 -0400
committermarios8543 <marios8543@gmail.com>2023-10-31 23:13:19 +0200
commite8f5ce8d5a24ab7ce046956905b22f1b93d2c4fe (patch)
tree46ec2457c4d8413106f259aef686d910581e54c3
parent81726acd51b9deeadf0eb863ea434b77e588f7d3 (diff)
downloaddecky-loader-e8f5ce8d5a24ab7ce046956905b22f1b93d2c4fe.tar.gz
decky-loader-e8f5ce8d5a24ab7ce046956905b22f1b93d2c4fe.zip
move type checking to other workflow, fix TS errors, add TSC checking
-rw-r--r--.github/workflows/lint.yml15
-rw-r--r--.github/workflows/typecheck.yml7
2 files changed, 4 insertions, 18 deletions
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index 232ea2e2..b88fc242 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -12,23 +12,12 @@ jobs:
steps:
- uses: actions/checkout@v3 # Check out the repository first.
- - name: Install Python dependencies
- run: |
- python -m pip install --upgrade pip
- [ -f requirements.txt ] && pip install -r requirements.txt
-
- - name: Install JavaScript dependencies
+ - name: Install TypeScript dependencies
working-directory: frontend
run: |
npm i -g pnpm
pnpm i --frozen-lockfile
- - name: Run pyright (Python)
- uses: jakebailey/pyright-action@v1
- with:
- python-version: "3.10.6"
- no-comments: true
-
- - name: Run prettier (JavaScript & TypeScript)
+ - name: Run prettier (TypeScript)
working-directory: frontend
run: pnpm run lint \ No newline at end of file
diff --git a/.github/workflows/typecheck.yml b/.github/workflows/typecheck.yml
index 01a4bdff..1f129f24 100644
--- a/.github/workflows/typecheck.yml
+++ b/.github/workflows/typecheck.yml
@@ -1,8 +1,7 @@
-name: Type Check
+name: Type check
on:
push:
- pull_request:
jobs:
typecheck:
@@ -10,10 +9,9 @@ jobs:
runs-on: ubuntu-20.04
steps:
- - uses: actions/checkout@v2 # Check out the repository first.
+ - uses: actions/checkout@v3 # Check out the repository first.
- name: Install Python dependencies
- working-directory: backend
run: |
python -m pip install --upgrade pip
[ -f requirements.txt ] && pip install -r requirements.txt
@@ -29,7 +27,6 @@ jobs:
with:
python-version: "3.10.6"
no-comments: true
- working-directory: backend
- name: Run tsc (TypeScript)
working-directory: frontend