Fix release, beta and canary scenarios #270
Workflow file for this run
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, pull_request] | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
timeout-minutes: 20 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 1 | |
- uses: volta-cli/action@v1 | |
- name: Install Dependencies | |
run: yarn install --frozen-lockfile | |
- name: Lint Addon | |
run: yarn lint | |
working-directory: addon | |
- name: Lint Test App | |
run: yarn lint | |
working-directory: test-app | |
- name: Lint Docs | |
run: yarn lint | |
working-directory: docs | |
test: | |
name: Tests | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 20 | |
needs: lint | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
browser: [chrome, firefox] | |
node: ['14', '16', '18'] | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 1 | |
- uses: volta-cli/action@v1 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Install Dependencies | |
run: yarn install --frozen-lockfile | |
- name: Test | |
run: yarn test:ember --launch ${{ matrix.browser }} | |
working-directory: test-app | |
floating-dependencies: | |
name: Floating Dependencies | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 20 | |
needs: lint | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
browser: [chrome, firefox] | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 1 | |
- uses: volta-cli/action@v1 | |
- name: Install Dependencies | |
run: yarn install --no-lockfile --non-interactive | |
- name: Test | |
run: yarn test:ember --launch ${{ matrix.browser }} | |
working-directory: test-app | |
try-scenarios: | |
name: Tests - ${{ matrix.ember-try-scenario }} | |
runs-on: ubuntu-latest | |
timeout-minutes: 20 | |
continue-on-error: ${{ matrix.allow-failure }} | |
needs: test | |
strategy: | |
fail-fast: true | |
matrix: | |
ember-try-scenario: | |
[ | |
ember-lts-3.28, | |
ember-lts-4.4, | |
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 | |
with: | |
fetch-depth: 1 | |
- uses: volta-cli/action@v1 | |
- name: Install Dependencies | |
run: yarn install --frozen-lockfile | |
- name: Test | |
env: | |
EMBER_TRY_SCENARIO: ${{ matrix.ember-try-scenario }} | |
run: node_modules/.bin/ember try:one $EMBER_TRY_SCENARIO | |
working-directory: test-app | |
docs: | |
name: Docs app | |
runs-on: ubuntu-latest | |
timeout-minutes: 20 | |
needs: test | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 1 | |
- uses: volta-cli/action@v1 | |
with: | |
node-version: 14 | |
- name: Install Dependencies | |
run: yarn install --frozen-lockfile | |
- name: Test | |
run: yarn test:ember --launch ${{ matrix.browser }} | |
working-directory: docs |