forked from rommapp/romm
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 944 Bytes
/
typecheck.yml
File metadata and controls
41 lines (34 loc) · 944 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Run Typescript Typecheck
on:
pull_request:
paths:
- "frontend/**"
push:
branches:
- "master"
paths:
- "frontend/**"
permissions: read-all
jobs:
typecheck:
runs-on: ubuntu-latest
permissions:
checks: write
pull-requests: write
steps:
- name: Checkout repository
uses: actions/checkout@v4.3.0
- name: Set up Node.js
uses: actions/setup-node@v5.0.0
with:
node-version: "18"
- name: Install dependencies
run: npm install
working-directory: frontend
- name: Run typecheck
run: npm run typecheck
working-directory: frontend
- name: Lockfile lint
run: |
[ -z "$(jq -r '.packages | to_entries[] | select((.key | contains("node_modules")) and (.value | has("resolved") and has("integrity") | not)) | .key' < package-lock.json)" ]
working-directory: frontend