Skip to content

Commit 56a5312

Browse files
committed
check outdated code
1 parent f9f016f commit 56a5312

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

.github/workflows/typescript.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,26 @@ jobs:
3232
node-version: "20"
3333
cache: "npm"
3434
- run: npm install
35-
- run: npx eslint .
35+
- run: npx eslint .
36+
javascript_sync:
37+
name: "Check for outdated JavaScript"
38+
needs: tsc
39+
runs-on: ubuntu-latest
40+
strategy:
41+
fail-fast: false
42+
steps:
43+
- uses: actions/checkout@v4
44+
- name: Set up node.js
45+
uses: actions/setup-node@v3
46+
with:
47+
node-version: "20"
48+
cache: "npm"
49+
- run: npm install
50+
- run: rm -r files/js/
51+
- run: |
52+
npx tsc
53+
- run: echo "::add-matcher::.github/diff.json"
54+
- name: Show diff
55+
run: |
56+
git checkout -- package-lock.json
57+
git diff --exit-code

0 commit comments

Comments
 (0)