Skip to content

CI

CI #2185

Workflow file for this run

# This workflow is largely based on
# https://github.com/salsify/ember-css-modules/blob/master/.github/workflows/ci.yml
name: CI
# These trigger patterns courtesy of https://github.com/broccolijs/broccoli/pull/436
on:
pull_request:
push:
# filtering branches here prevents duplicate builds from pull_request and push
branches:
- main
- "v*"
# always run CI for tags
tags:
- "*"
# early issue detection: run CI weekly on Sundays
schedule:
- cron: "0 6 * * 0"
env:
CI: true
jobs:
test-locked-deps:
name: Locked Deps
runs-on: ubuntu-20.04
steps:
- name: Setup
uses: wyvox/action@v1
- name: Build package
run: pnpm --filter ember-link build
- name: Lint JS
run: pnpm run -r --parallel --aggregate-output lint:js
- name: Lint Types
run: pnpm run -r --parallel --aggregate-output lint:types
- name: Lint Handlebars
run: pnpm run -r --parallel --aggregate-output lint:hbs
- name: Tests
run: pnpm run -r --parallel --aggregate-output test
test-floating-deps:
name: Floating Deps
runs-on: ubuntu-20.04
steps:
- name: Setup
uses: wyvox/action@v1
with:
pnpm-args: --no-frozen-lockfile
- name: Build package
run: pnpm --filter ember-link build
- name: Lint JS
run: pnpm run -r --parallel --aggregate-output lint:js
- name: Lint Types
run: pnpm run -r --parallel --aggregate-output lint:types
- name: Lint Handlebars
run: pnpm run -r --parallel --aggregate-output lint:hbs
- name: Tests
run: pnpm run -r --parallel --aggregate-output test
test-try:
name: Ember Try
runs-on: ubuntu-20.04
needs: [test-locked-deps]
strategy:
fail-fast: false
matrix:
try-scenario:
- ember-3.28
- ember-4.4
- ember-4.8
- ember-4.12
- ember-release
- ember-beta
- ember-canary
- embroider-safe
- embroider-optimized
steps:
- name: Setup
uses: wyvox/action@v1
- name: Build package
run: pnpm --filter ember-link build
- name: Try Scenario
run: pnpm exec ember try:one ${{ matrix.try-scenario }} --skip-cleanup
working-directory: test-app