Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
robertKozik committed Jan 17, 2024
1 parent 7ee8adf commit a5b71d5
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 2 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/static-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Test TypeScript and Lint
on:
pull_request:
merge_group:
branches:
- main
push:
jobs:
check:
runs-on: ubuntu-latest
strategy:
matrix: {dir: ['parser', 'example', 'WebExample']}
concurrency:
group: typescript-${{ matrix.dir }}-${{ github.ref }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v4
- name: Use Node.js 18
uses: actions/setup-node@v4
with:
node-version: 18
- name: Install root node dependencies
run: yarn
- name: Install ${{ matrix.dir }} app node dependencies
if: ${{ matrix.dir != 'example' }}
working-directory: ${{ matrix.dir }}
run: npm ci
- name: Check types
working-directory: ${{ matrix.dir }}
run: npx tsc -p ./tsconfig.json --noEmit
- name: Lint
run: yarn lint:${{ matrix.dir }}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"lint:root": "eslint . --ext .js,.ts,.tsx --ignore-pattern '/example/**/*' --ignore-pattern '/WebExample/**/*' --ignore-pattern '/parser/**/*'",
"lint:example": "eslint example --ext .js,.ts,.tsx",
"lint:parser": "eslint parser --ext .js,.ts,.tsx",
"lint:web": "eslint WebExample --ext .js,.ts,.tsx",
"lint:WebExample": "eslint WebExample --ext .js,.ts,.tsx",
"clean": "del-cli android/build example/android/build example/android/app/build example/ios/build lib",
"prepare": "bob build",
"release": "release-it"
Expand Down Expand Up @@ -156,4 +156,4 @@
"type": "components",
"jsSrcsDir": "src"
}
}
}

0 comments on commit a5b71d5

Please sign in to comment.