diff --git a/.eslintrc.js b/.eslintrc.js index 4e42f255..67371cb9 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -80,11 +80,11 @@ module.exports = { { // we have non-test files in the pipeline/test directory // this ensures the jest rules only apply to test files - files: ['*test.ts', '*test.tsx'], + files: ['*test.ts'], extends: ['plugin:jest/recommended'], }, { - files: ['*.ts', '*.tsx'], + files: ['*.ts'], parser: '@typescript-eslint/parser', plugins: [...sharedPlugins, '@typescript-eslint'], extends: [...sharedExtends, 'plugin:@typescript-eslint/recommended'], diff --git a/.github/workflows/tsc.yml b/.github/workflows/tsc.yml new file mode 100644 index 00000000..474154d0 --- /dev/null +++ b/.github/workflows/tsc.yml @@ -0,0 +1,19 @@ +name: 'Typescript' +on: + push: + +jobs: + tsc: + name: tsc + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: install Node + # https://github.com/actions/setup-node?tab=readme-ov-file#usage + # The node-version input is optional. If not supplied, the node version from PATH will be used. + # However, it is recommended to always specify Node.js version and don't rely on the system one. + uses: actions/setup-node@v4 + with: + node-version: 20 + - name: yarn tsc + run: yarn install && yarn tsc