Skip to content

Commit

Permalink
check ts files for errors on CI (#2136)
Browse files Browse the repository at this point in the history
- and introduced error for testing
  • Loading branch information
foxriver76 authored Sep 29, 2023
1 parent 61dc3db commit b8abec2
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/test-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,22 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 18.x
- run: npm i
- run: NODE_OPTIONS=--max_old_space_size=4096 npm run build

- name: 'Install'
run: npm i

- name: 'Install FE'
run: |
cd src
npm i --force
- name: Check TypeScript files
run: |
cd src
npm run check-ts
- name: 'Build'
run: NODE_OPTIONS=--max_old_space_size=4096 npm run build

# Runs adapter tests on all supported node versions and OSes
adapter-tests:
Expand Down
5 changes: 3 additions & 2 deletions src/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,11 @@
"scripts": {
"start": "set DANGEROUSLY_DISABLE_HOST_CHECK=true&& craco start",
"old-start": "react-scripts start",
"lint": "eslint --fix --ext .js,.jsx src",
"lint": "eslint --fix --ext .js,.jsx,.tsx src",
"build": "craco build",
"test": "react-scripts test",
"eject": "react-scripts eject"
"eject": "react-scripts eject",
"check-ts": "tsc --noEmit --checkJS false"
},
"eslintConfig": {
"extends": "react-app"
Expand Down

0 comments on commit b8abec2

Please sign in to comment.