feat: install TypeScript #72
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
env: | |
NODE_VERSION: 18 | |
jobs: | |
dependencies: | |
name: Install dependencies | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '${{ env.NODE_VERSION }}' | |
check-latest: true | |
cache: 'npm' | |
- name: Install latest npm | |
run: npm install -g npm@latest | |
- name: Install Dependencies | |
run: npm ci | |
lint: | |
name: Lint | |
needs: dependencies | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '${{ env.NODE_VERSION }}' | |
check-latest: true | |
cache: 'npm' | |
- name: Install Dependencies | |
run: npm ci | |
- name: Lint | |
run: npm run lint | |
test: | |
name: Tests | |
needs: dependencies | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '${{ env.NODE_VERSION }}' | |
check-latest: true | |
cache: 'npm' | |
- name: Install Dependencies | |
run: npm ci | |
- name: Test | |
run: npm run test:ember | |
floating-dependencies: | |
name: Floating Dependencies | |
needs: test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '${{ env.NODE_VERSION }}' | |
check-latest: true | |
cache: 'npm' | |
- name: Install latest npm | |
run: npm install -g npm@latest | |
- name: Install Dependencies | |
run: npm install --no-package-lock | |
- name: Test | |
run: npm run test:ember | |
try-scenarios: | |
name: Tests - ${{ matrix.ember-try-scenario }} | |
runs-on: ubuntu-latest | |
continue-on-error: ${{ matrix.allow-failure }} | |
needs: test | |
strategy: | |
fail-fast: false | |
matrix: | |
ember-try-scenario: | |
- ember-lts-3.20 | |
- ember-lts-3.24 | |
- ember-release | |
- ember-beta | |
- ember-classic | |
- embroider-safe | |
- embroider-optimized | |
allow-failure: [false] | |
include: | |
- ember-try-scenario: ember-canary | |
allow-failure: true | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '${{ env.NODE_VERSION }}' | |
check-latest: true | |
cache: 'npm' | |
- name: Install Dependencies | |
run: npm ci | |
- name: Test | |
env: | |
EMBER_TRY_SCENARIO: ${{ matrix.ember-try-scenario }} | |
run: node_modules/.bin/ember try:one $EMBER_TRY_SCENARIO |