Skip to content

Commit

Permalink
chore: add ts support matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
knownasilya committed Oct 15, 2022
1 parent 399d8b1 commit adef064
Showing 1 changed file with 37 additions and 10 deletions.
47 changes: 37 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: volta-cli/action@v2
- uses: volta-cli/action@v3
- name: Install Dependencies
run: yarn install --frozen-lockfile
- name: Lint Addon
Expand All @@ -37,10 +37,10 @@ jobs:
node: ['14', '16', '18']

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: volta-cli/action@v2
- uses: volta-cli/action@v3
with:
node-version: ${{ matrix.node }}
- name: Install Dependencies
Expand All @@ -61,10 +61,10 @@ jobs:
browser: [chrome, firefox]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: volta-cli/action@v2
- uses: volta-cli/action@v3
- name: Install Dependencies
run: yarn install --no-lockfile --non-interactive
- name: Test
Expand Down Expand Up @@ -97,10 +97,10 @@ jobs:
allow-failure: true

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: volta-cli/action@v2
- uses: volta-cli/action@v3
- name: Install Dependencies
run: yarn install --frozen-lockfile
- name: Test
Expand All @@ -109,16 +109,43 @@ jobs:
run: node_modules/.bin/ember try:one $EMBER_TRY_SCENARIO
working-directory: test-app

typescript-compatibility:
name: ${{ matrix.typescript-scenario }}
timeout-minutes: 5
runs-on: ubuntu-latest
continue-on-error: true
needs: test
strategy:
fail-fast: true
matrix:
typescript-scenario:
- typescript@4.5
- typescript@4.6
- typescript@4.7
- typescript@4.8
steps:
- uses: actions/checkout@v3
- uses: volta-cli/action@v3
- name: Install Dependencies
run: yarn install --frozen-lockfile
- name: Update TS Version
run: yarn add -D ${{ matrix.typescript-scenario }}
working-directory: ./addon
- name: Type checking
working-directory: ./addon
run: >-
yarn tsc -v; yarn tsc --build
docs:
name: Docs app
runs-on: ubuntu-latest
timeout-minutes: 20
needs: test
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: volta-cli/action@v2
- uses: volta-cli/action@v3
with:
node-version: 14
- name: Install Dependencies
Expand Down

0 comments on commit adef064

Please sign in to comment.