summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorAAGaming <aagaming@riseup.net>2023-09-25 13:23:38 -0400
committermarios8543 <marios8543@gmail.com>2023-10-17 17:08:23 +0300
commit8fe80629500ee4897862b1e13917ad3fe6f7d95a (patch)
tree5482d24566193668c7ab7269b264cf2d6cfd269d /.github/workflows
parent11d731cf35de204f7ade36edeb624db265a87f06 (diff)
downloaddecky-loader-8fe80629500ee4897862b1e13917ad3fe6f7d95a.tar.gz
decky-loader-8fe80629500ee4897862b1e13917ad3fe6f7d95a.zip
move type checking to other workflow, fix TS errors, add TSC checking
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/lint.yml15
-rw-r--r--.github/workflows/typecheck.yml33
2 files changed, 35 insertions, 13 deletions
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index 6fb35586..24e756bf 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -11,23 +11,12 @@ jobs:
steps:
- uses: actions/checkout@v2 # 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
new file mode 100644
index 00000000..d54c4048
--- /dev/null
+++ b/.github/workflows/typecheck.yml
@@ -0,0 +1,33 @@
+name: Type check
+
+on:
+ push:
+
+jobs:
+ typecheck:
+ name: Run type checkers
+ runs-on: ubuntu-20.04
+
+ steps:
+ - uses: actions/checkout@v2 # 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 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 tsc (TypeScript)
+ working-directory: frontend
+ run: $(pnpm bin)/tsc --noEmit \ No newline at end of file