CI #819
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: | |
pull_request: | |
push: | |
branches: | |
- master | |
- "v*" | |
tags: | |
- "*" | |
schedule: | |
- cron: '0 6 * * 0' # early issue detection: run CI weekly on Sundays | |
jobs: | |
lint: | |
name: Code Quality | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v1 | |
- name: Install Node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 14.x | |
- name: Upgrade NPM | |
run: npm install -g [email protected] | |
- name: Install Dependencies | |
run: npm ci | |
- name: Lint JS | |
run: npm run lint:js | |
- name: Lint Handlebars | |
run: npm run lint:hbs | |
test: | |
name: Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v1 | |
- name: Install Node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 14.x | |
- name: Upgrade NPM | |
run: npm install -g [email protected] | |
- name: Install Dependencies | |
run: npm ci | |
- name: Test | |
run: npm run test:ember | |
try-scenarios: | |
name: ${{ matrix.ember-try-scenario }} | |
runs-on: ubuntu-latest | |
needs: test | |
strategy: | |
fail-fast: true | |
matrix: | |
ember-try-scenario: | |
- ember-lts-3.16 | |
- ember-lts-3.20 | |
# - ember-release | |
# - ember-beta | |
# - ember-default-with-jquery | |
- ember-classic | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v1 | |
- name: Install Node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 14.x | |
- name: Upgrade NPM | |
run: npm install -g [email protected] | |
- 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 |