Skip to content

Commit

Permalink
Move CI and release to Github Actions
Browse files Browse the repository at this point in the history
and away from TravisCI
  • Loading branch information
jrjohnson committed Jan 4, 2020
1 parent 3c28e70 commit d091a09
Show file tree
Hide file tree
Showing 3 changed files with 94 additions and 64 deletions.
60 changes: 60 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: CI

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

jobs:
test:
name: Tests
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 8
- name: install dependencies
run: npm ci
- name: lint js
run: npm run lint:js
- name: lint hbs
run: npm run lint:hbs
- name: test
run: npm test

try-scenarios:
name: ember-try

runs-on: ubuntu-latest

needs: test

strategy:
fail-fast: true
matrix:
ember-try-scenario:
- ember-lts-3.4
- ember-lts-3.8
- ember-release
- ember-beta
- ember-canary
- ember-default-with-jquery

steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
- name: install dependencies
run: npm ci
- name: test
env:
EMBER_TRY_SCENARIO: ${{ matrix.ember-try-scenario }}
run: node_modules/.bin/ember try:one $EMBER_TRY_SCENARIO
34 changes: 34 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Publish NPM Package

on:
release:
types: [published]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
- name: install dependencies
run: npm ci
- name: test
run: npm test

publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- name: install dependencies
run: npm ci
- name: publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
64 changes: 0 additions & 64 deletions .travis.yml

This file was deleted.

0 comments on commit d091a09

Please sign in to comment.