mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-07 23:55:12 -04:00
Added workflow for type checks.
This commit is contained in:
parent
c10867c52e
commit
2d690990dc
3 changed files with 38 additions and 0 deletions
31
.github/workflows/perform-type-check.yml
vendored
Normal file
31
.github/workflows/perform-type-check.yml
vendored
Normal file
|
@ -0,0 +1,31 @@
|
|||
name: "Perform type cehcks"
|
||||
|
||||
# any branch is useful for testing before a PR is submitted
|
||||
on: [push, pull_request]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
|
||||
jobs:
|
||||
performTypeCheck:
|
||||
if: |
|
||||
(github.event_name != 'pull_request')
|
||||
|| (github.event.pull_request.head.repo.id != github.event.pull_request.base.repo.id)
|
||||
name: perform type check
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
cache: 'npm'
|
||||
cache-dependency-path: |
|
||||
src/package-lock.json
|
||||
src/bin/doc/package-lock.json
|
||||
-
|
||||
name: Install all dependencies and symlink for ep_etherpad-lite
|
||||
run: src/bin/installDeps.sh
|
||||
- name: Perform type check
|
||||
run: npx tsc --noEmit
|
6
src/package-lock.json
generated
6
src/package-lock.json
generated
|
@ -8432,6 +8432,12 @@
|
|||
"is-typed-array": "^1.1.9"
|
||||
}
|
||||
},
|
||||
"typescript": {
|
||||
"version": "5.3.3",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.3.tgz",
|
||||
"integrity": "sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==",
|
||||
"dev": true
|
||||
},
|
||||
"ueberdb2": {
|
||||
"version": "4.2.48",
|
||||
"resolved": "https://registry.npmjs.org/ueberdb2/-/ueberdb2-4.2.48.tgz",
|
||||
|
|
|
@ -79,6 +79,7 @@
|
|||
"etherpad-lite": "node/server.ts"
|
||||
},
|
||||
"devDependencies": {
|
||||
"typescript": "^5.3.3",
|
||||
"@types/node": "^20.11.5",
|
||||
"eslint": "^8.56.0",
|
||||
"eslint-config-etherpad": "^3.0.22",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue