Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GH Actions CI setup. #281

Merged
merged 3 commits into from
Sep 8, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
108 changes: 108 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
name: CI

on:
push:
branches:
- master
- 'v*'
pull_request: {}
schedule:
- cron: '0 6 * * 0' # weekly, on sundays

jobs:
lint:
name: Linting
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12.x
- name: install yarn
run: npm install -g yarn
- name: install dependencies
run: yarn install
- name: lint:js
run: yarn lint:js
- name: lint:hbs
run: yarn lint:hbs

test:
name: Tests
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest, windows-latest]
node-version: [8.x, 10.x, 12.x]

steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: install yarn
run: npm install -g yarn
- name: install dependencies
run: yarn install
- name: node tests
run: yarn test:node
- name: ember test
run: yarn test:ember

floating-dependencies:
name: Floating Deps
runs-on: ubuntu-latest

needs: [test, lint]

steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12.x
- name: install yarn
run: npm install -g yarn
- name: install dependencies
run: yarn install --ignore-lockfile
- name: node tests
run: yarn test:node
- name: ember test
run: yarn test:ember

try-scenarios:
name: ${{ matrix.ember-try-scenario }}

runs-on: ubuntu-latest

needs: [test, lint]

strategy:
matrix:
ember-try-scenario:
- ember-lts-2.12
- ember-lts-2.16
- ember-lts-2.18
- ember-lts-3.4
- ember-lts-3.8
- ember-lts-3.12
- ember-release
- ember-beta
- ember-canary
- ember-default
- ember-default-with-jquery

steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12.x
- name: install yarn
run: npm install -g yarn
- name: install dependencies
run: yarn install
- name: test
env:
EMBER_TRY_SCENARIO: ${{ matrix.ember-try-scenario }}
run: node_modules/.bin/ember try:one $EMBER_TRY_SCENARIO
83 changes: 0 additions & 83 deletions .travis.yml

This file was deleted.

37 changes: 0 additions & 37 deletions appveyor.yml

This file was deleted.

2 changes: 0 additions & 2 deletions testem.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ module.exports = {
// --no-sandbox is needed when running Chrome inside a container
process.env.CI ? '--no-sandbox' : null,
'--headless',
'--disable-gpu',
'--disable-dev-shm-usage',
'--disable-software-rasterizer',
'--mute-audio',
'--remote-debugging-port=0',
'--window-size=1440,900'
Expand Down