Skip to content

Commit

Permalink
Merge pull request #253 from qonto/ci-typescript-versions
Browse files Browse the repository at this point in the history
ci: add TypeScript compatibility check jobs
  • Loading branch information
vscav authored Oct 18, 2023
2 parents f872819 + 63f522c commit 7628e13
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
- [email protected]
- [email protected]
- 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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 7628e13

Please sign in to comment.