mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Adds TypeScript Checking to GitHub Actions
This commit is contained in:
parent
819b0fca49
commit
df6b685aa7
2 changed files with 32 additions and 0 deletions
31
.github/workflows/tsc.yml
vendored
Normal file
31
.github/workflows/tsc.yml
vendored
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
name: TypeScript Build Check
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ master, release* ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ master, release* ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
tsc:
|
||||||
|
name: Run TypeScript build check
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Check out Git repository
|
||||||
|
uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3
|
||||||
|
|
||||||
|
- name: Setup node environment
|
||||||
|
uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # tag=v3.5.1
|
||||||
|
with:
|
||||||
|
node-version: 16
|
||||||
|
check-latest: true
|
||||||
|
cache: npm
|
||||||
|
|
||||||
|
- name: Install Node.js dependencies
|
||||||
|
run: npm ci --no-audit
|
||||||
|
env:
|
||||||
|
SKIP_PREPARE: true
|
||||||
|
|
||||||
|
- name: Run tsc
|
||||||
|
run: npm run build:check
|
|
@ -134,6 +134,7 @@
|
||||||
"prepare": "node ./scripts/prepare.js",
|
"prepare": "node ./scripts/prepare.js",
|
||||||
"build:development": "webpack --config webpack.dev.js",
|
"build:development": "webpack --config webpack.dev.js",
|
||||||
"build:production": "cross-env NODE_ENV=\"production\" webpack --config webpack.prod.js",
|
"build:production": "cross-env NODE_ENV=\"production\" webpack --config webpack.prod.js",
|
||||||
|
"build:check": "tsc --noEmit",
|
||||||
"escheck": "es-check",
|
"escheck": "es-check",
|
||||||
"lint": "eslint \"./\"",
|
"lint": "eslint \"./\"",
|
||||||
"stylelint": "npm run stylelint:css && npm run stylelint:scss",
|
"stylelint": "npm run stylelint:css && npm run stylelint:scss",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue