Skip to content

Commit a8e0cbc

Browse files
committed
fix GH action
1 parent 8743976 commit a8e0cbc

File tree

4 files changed

+30
-33
lines changed

4 files changed

+30
-33
lines changed

.github/action/setup.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

.github/workflows/setup.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: "Setup Action"
2+
permissions: write-all
3+
on:
4+
workflow_call:
5+
6+
jobs:
7+
setup:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout Repository
11+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
12+
13+
- name: Set up Node.js
14+
uses: actions/setup-node@23755b521f87533c8ed7f8fb13674f9021579e34 # v4
15+
with:
16+
node-version: "22"
17+
18+
- name: Install dependencies
19+
run: npm ci

.github/workflows/static-checks.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,28 +11,31 @@ on:
1111
jobs:
1212
setup:
1313
name: Setup Dependencies
14-
uses: ./.github/action/setup.yml
14+
uses: ./.github/workflows/setup.yml
1515

1616
lint:
1717
name: ESLint Check
1818
runs-on: ubuntu-latest
19-
needs: setup
2019
steps:
20+
- name: Checkout Repository
21+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
2122
- name: Run Linter
22-
run: npm run lint
23+
run: npx eslint .
2324

2425
tsc:
2526
name: TS Types Check
2627
runs-on: ubuntu-latest
27-
needs: setup
2828
steps:
29+
- name: Checkout Repository
30+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
2931
- name: Run Tsc
3032
run: npm run type-check
3133

3234
build:
3335
name: Build App Check
3436
runs-on: ubuntu-latest
35-
needs: setup
3637
steps:
38+
- name: Checkout Repository
39+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
3740
- name: Build App
3841
run: npm run build

tsconfig.node.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111
"allowImportingTsExtensions": true,
1212
"isolatedModules": true,
1313
"moduleDetection": "force",
14+
"allowSyntheticDefaultImports": true,
15+
"esModuleInterop": true,
1416
"noEmit": true,
17+
"jsx": "react-jsx",
1518

1619
/* Linting */
1720
"strict": true,

0 commit comments

Comments
 (0)