Skip to content

CI

CI #433

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:
- master
- "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-16.04
steps:
- name: Checkout Code
uses: actions/checkout@v1
- name: Install Node
uses: actions/setup-node@v1
with:
node-version: 12
- name: Install Dependencies
run: yarn install --frozen-lockfile
- name: Lint JS
run: yarn lint:js
- name: Lint Types
run: yarn lint:types
- name: Lint Handlebars
run: yarn lint:hbs
- name: Browser Tests
run: yarn test
test-old-dependencies:
name: Oldest Supported Env
runs-on: ubuntu-16.04
steps:
- name: Checkout Code
uses: actions/checkout@v1
- name: Install Node
uses: actions/setup-node@v1
with:
node-version: 10
- name: Install Dependencies
run: yarn install --frozen-lockfile
- name: Browser Tests
run: yarn test
test-try:
name: Ember Try
runs-on: ubuntu-16.04
needs: [test-locked-deps]
strategy:
fail-fast: false
matrix:
scenario:
- ember-lts-3.8
- ember-lts-3.12
- ember-lts-3.16
- ember-lts-3.20
- ember-3.23
- ember-release
- ember-beta
- ember-canary
steps:
- name: Checkout Code
uses: actions/checkout@v1
- name: Install Node
uses: actions/setup-node@v1
with:
node-version: 12
- name: Install Dependencies
run: yarn install --frozen-lockfile
- name: Try Scenario
run: yarn ember try:one ${{ matrix.scenario }}