Skip to content

Commit 9f9ba5f

Browse files
committed
Add tsc and build to CI
1 parent 3ff2056 commit 9f9ba5f

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ jobs:
1616
steps:
1717
- uses: actions/checkout@v4
1818
- uses: psf/black@stable
19-
eslint:
20-
name: ESLint
19+
prettier:
20+
name: Prettier
2121
runs-on: ubuntu-latest
2222
steps:
2323
- uses: actions/checkout@v4
@@ -28,10 +28,10 @@ jobs:
2828
cache: 'npm'
2929
- name: Install node dependencies
3030
run: npm install
31-
- name: Run ESLint
32-
run: npm run ci-eslint
33-
prettier:
34-
name: Prettier
31+
- name: Run Prettier
32+
run: npm run ci-prettier
33+
build:
34+
name: Build
3535
runs-on: ubuntu-latest
3636
steps:
3737
- uses: actions/checkout@v4
@@ -42,5 +42,9 @@ jobs:
4242
cache: 'npm'
4343
- name: Install node dependencies
4444
run: npm install
45-
- name: Run Prettier
46-
run: npm run ci-prettier
45+
- name: Run ESLint
46+
run: npm run ci-eslint
47+
- name: Run tsc
48+
run: npm run ci-tsc
49+
- name: Run build
50+
run: npm run build

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434
"eject": "react-scripts eject",
3535
"format": "prettier --write **/*.{ts,tsx}",
3636
"ci-prettier": "prettier --check **/*.{ts,tsx}",
37-
"ci-eslint": "eslint **/*.{ts,tsx}"
37+
"ci-eslint": "eslint **/*.{ts,tsx}",
38+
"ci-tsc": "tsc"
3839
},
3940
"eslintConfig": {
4041
"extends": [

0 commit comments

Comments
 (0)