Skip to content

feat: install TypeScript #72

feat: install TypeScript

feat: install TypeScript #72

Workflow file for this run

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