Skip to content

Commit

Permalink
ci: migrate to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jkusa committed Feb 22, 2021
1 parent 22c1dd9 commit 64cfdd8
Show file tree
Hide file tree
Showing 3 changed files with 112 additions and 59 deletions.
83 changes: 83 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
name: CI

on:
pull_request:
push:
# filtering branches here prevents duplicate builds from pull_request and push
branches:
- main
schedule:
- cron: '0 3 * * 0' # every Sunday at 3am

env:
CI: true

jobs:
tests:
if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')"
name: Base Tests
timeout-minutes: 5
runs-on: ubuntu-latest
strategy:
matrix:
node:
- '12'
- '14'
steps:
- uses: actions/checkout@v2
- uses: volta-cli/action@v1
with:
node-version: ${{ matrix.node }}

- run: npm ci

- name: Test with ${{ matrix.node }}
run: npm run test:ember

floating-dependencies:
if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')"
name: Floating Dependencies
timeout-minutes: 5
runs-on: ubuntu-latest
strategy:
matrix:
node:
- '12'
- '14'

steps:
- uses: actions/checkout@v2
- uses: volta-cli/action@v1
with:
node-version: ${{ matrix.node }}

- run: npm install --no-package-lock
- name: Test with Node ${{ matrix.node }}
run: npm run test:ember

try-scenarios:
if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')"
name: 'Compatibility'
timeout-minutes: 5
runs-on: ubuntu-latest
needs: tests

strategy:
fail-fast: true
matrix:
ember-try-scenario:
- ember-lts-3.16
- ember-lts-3.20
- ember-release
- ember-beta
- ember-canary
- ember-classic
steps:
- uses: actions/checkout@v2
- uses: volta-cli/action@v1
with:
node-version: 12.x
- name: install dependencies
run: npm ci
- name: test
run: node_modules/.bin/ember try:one ${{ matrix.ember-try-scenario }} --skip-cleanup
29 changes: 29 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Lint

on:
pull_request:
push:
# filtering branches here prevents duplicate builds from pull_request and push
branches:
- master

env:
CI: true

jobs:
source:
if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')"
name: Source
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: volta-cli/action@v1

- run: npm ci

- name: ESLint
run: npm run lint:js

- name: Templates
run: npm run lint:hbs
59 changes: 0 additions & 59 deletions .travis.yml

This file was deleted.

0 comments on commit 64cfdd8

Please sign in to comment.