mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-08 16:05:05 -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
|
Loading…
Add table
Add a link
Reference in a new issue