diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 55df07c3..00aae4ff 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -85,3 +85,35 @@ jobs: - name: Run Tests run: pnpm try:ember ${{ matrix.try-scenario }} working-directory: test-app + + typescript-compatibility: + name: Type checking - ${{ matrix.typescript-scenario }} + runs-on: ubuntu-latest + + needs: [test] + + strategy: + fail-fast: false + matrix: + typescript-scenario: + - typescript@5.0 + - typescript@5.1 + - typescript@next + + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Install pnpm + uses: wyvox/action-setup-pnpm@v3 + with: + pnpm-version: 8.5.1 + node-version: 16.x + args: "--frozen-lockfile" + - name: Update TS version on addon package + run: pnpm add -D ${{ matrix.typescript-scenario }} + working-directory: ember-lottie + - name: Update TS version on test-app package + run: pnpm add -D ${{ matrix.typescript-scenario }} + working-directory: test-app + - name: Type checking + run: pnpm lint:types diff --git a/README.md b/README.md index 2584e373..030ed8c0 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,7 @@ Render [lottie](https://github.com/airbnb/lottie-web) after effects animations i - Ember.js v3.28 or above - Ember CLI v3.28 or above - Node.js v14 or above +- TypeScript v5 or above ## Installation diff --git a/package.json b/package.json index 7e451be5..45918f06 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ "build": "pnpm --filter @qonto/ember-lottie build", "lint": "pnpm --filter '*' lint", "lint:fix": "pnpm --filter '*' lint:fix", + "lint:types": "pnpm --filter '*' lint:types", "prepare": "pnpm build", "start": "concurrently 'npm:start:*' --restart-after 5000 --prefix-colors cyan,white,yellow", "start:addon": "pnpm --filter @qonto/ember-lottie start --no-watch.clearScreen",