Skip to content

Add v5.4 LTS to CI matrix #769

Add v5.4 LTS to CI matrix

Add v5.4 LTS to CI matrix #769

Workflow file for this run

name: CI
on:
push:
branches:
- main
- master
pull_request: {}
concurrency:
group: ci-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
test:
name: "Tests"
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- name: Install Node
uses: actions/setup-node@v4
with:
node-version: 18.x
cache: pnpm
- name: Install Dependencies
run: pnpm install
- name: Lint
run: pnpm run lint
working-directory: packages/ember-cli-mirage
- name: Run Tests
run: pnpm run test:ember
working-directory: packages/ember-cli-mirage
floating:
name: "Floating Dependencies"
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- name: Install Node
uses: actions/setup-node@v4
with:
node-version: 18.x
cache: pnpm
- name: Update resolution-mode
run: echo "resolution-mode=highest" >> .npmrc
- name: Install Dependencies
run: pnpm install --no-lockfile
- name: Run Tests
run: pnpm run test:ember
working-directory: packages/ember-cli-mirage
test-docs:
name: "Docs"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- name: Install Node
uses: actions/setup-node@v4
with:
node-version: 18.x
cache: pnpm
- name: Install Dependencies
run: pnpm install
- name: Lint
run: pnpm run lint
working-directory: packages/ember-cli-mirage-docs
- name: Run Tests
run: pnpm run test:ember
working-directory: packages/ember-cli-mirage-docs
test-app-01:
name: "Tests - Basic App"
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- name: Install Node
uses: actions/setup-node@v4
with:
node-version: 18.x
cache: pnpm
- name: Install Dependencies
run: pnpm install
- name: Lint
run: pnpm run lint
working-directory: test-packages/01-basic-app
- name: Run Tests
run: pnpm run test
working-directory: test-packages/01-basic-app
test-app-02:
name: "Tests - App That Excludes Mirage"
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- name: Install Node
uses: actions/setup-node@v4
with:
node-version: 18.x
cache: pnpm
- name: Install Dependencies
run: pnpm install
- name: Lint
run: pnpm run lint
working-directory: test-packages/02-app-that-excludes-mirage
- name: Run Tests
run: pnpm run test
working-directory: test-packages/02-app-that-excludes-mirage
try-scenarios:
name: ${{ matrix.try-scenario }}
runs-on: ubuntu-latest
timeout-minutes: 60
needs: 'test'
strategy:
fail-fast: false
matrix:
try-scenario:
- ember-lts-3.28
- ember-lts-4.4
- ember-lts-4.8
- ember-lts-4.12
- ember-lts-5.4
- ember-release
- ember-beta
- ember-canary
# - embroider-safe
# - embroider-optimized
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- name: Install Node
uses: actions/setup-node@v4
with:
node-version: 18.x
cache: pnpm
- name: Install Dependencies
run: pnpm install
- name: Run Tests
run: ./node_modules/.bin/ember try:one ${{ matrix.try-scenario }}
working-directory: packages/ember-cli-mirage