Skip to content

Commit

Permalink
chore: use github actions as CI service
Browse files Browse the repository at this point in the history
  • Loading branch information
LevelbossMike committed May 10, 2021
1 parent 262cf50 commit 6ba1ae6
Showing 1 changed file with 80 additions and 0 deletions.
80 changes: 80 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
# 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-latest
steps:
- name: Checkout Code
uses: actions/checkout@v1
- name: Install Node
uses: actions/setup-node@v1
with:
node-version: 14
- name: Install Dependencies
run: yarn install --frozen-lockfile
- name: Lint
run: yarn lint
- name: Browser Tests
run: yarn test:ember

test-old-dependencies:
name: Oldest Supported Env
runs-on: ubuntu-latest
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:ember

test-try:
name: Ember Try
runs-on: ubuntu-latest
needs: [test-locked-deps]
strategy:
matrix:
scenario:
- ember-lts-3.16
- ember-lts-3.20
- 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: 14
- name: Install Dependencies
run: yarn install --frozen-lockfile
- name: Try Scenario
run: yarn ember try:one ${{ matrix.scenario }}

0 comments on commit 6ba1ae6

Please sign in to comment.