diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 251d8a9c08df..d392328c114a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -219,3 +219,25 @@ jobs: with: name: playwright-report path: .playwright + + typecheck: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Use Node.js 16.x + uses: actions/setup-node@v3 + with: + node-version: '16.x' + - uses: actions/cache@v3 + id: cache + with: + path: | + node_modules + */**/node_modules + key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} + - name: Install dependencies + run: yarn install --immutable --immutable-cache + - name: Build project + run: yarn build --ignore '@carbon/sketch' + - name: Typecheck TypeScript files + run: yarn typecheck \ No newline at end of file