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

Use GitHub Actions #282

Merged
merged 1 commit into from
Mar 24, 2020
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
103 changes: 103 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
name: CI

on:
push:
branches:
- master
tags:
- 'v*'
pull_request: {}

env:
CI: true

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

steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 10.x
- name: Run yarn install
run: yarn install --non-interactive
- name: Run yarn lint:js
run: yarn lint:js
- name: Run yarn lint:hbs
run: yarn lint:hbs

test-ember:
name: Tests / Ember
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 10.x
- name: Run yarn install
run: yarn install --non-interactive
- name: Run yarn test
run: yarn test

test-node:
name: Tests / Node
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 10.x
- name: Run yarn install
run: yarn install --non-interactive
- name: Run yarn node-test
uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageCommand: yarn node-test

test-float:
name: Tests / floating dependencies
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 10.x
- name: Run yarn install
run: yarn install --ignore-lockfile --non-interactive
- name: Run yarn test
run: yarn test

try-scenarios:
name: Tests / ${{ matrix.ember-try-scenario }}
runs-on: ubuntu-latest
needs: [lint, test-ember]

strategy:
matrix:
ember-try-scenario:
- ember-lts-3.8
- ember-lts-3.12
- ember-release
- ember-beta
- ember-canary
- ember-default-with-jquery
- ember-classic

steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 10.x
- name: Run yarn install
run: yarn install --non-interactive
- name: Run yarn test:one
env:
EMBER_TRY_SCENARIO: ${{ matrix.ember-try-scenario }}
run: yarn test:one $EMBER_TRY_SCENARIO
33 changes: 33 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Documentation

on:
push:
branches:
- master
tags:
- 'v*'

env:
CI: true

jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 10.x
- name: Set environment ADDON_DOCS_VERSION_PATH
run: echo "::set-env name=ADDON_DOCS_VERSION_PATH::${GITHUB_REF##*/}"
- name: Set environment ADDON_DOCS_UPDATE_LATEST
if: contains(github.ref , 'master') != true
run: echo "::set-env name=ADDON_DOCS_UPDATE_LATEST::true"
- name: Run yarn install --non-interactive
run: yarn install
- name: Run yarn deploy
env:
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
run: yarn deploy
78 changes: 0 additions & 78 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ember-web-app

[![Build Status](https://travis-ci.org/zonkyio/ember-web-app.svg?branch=master)](https://travis-ci.org/zonkyio/ember-web-app)
[![Actions Status](https://github.com/zonkyio/ember-web-app/workflows/CI/badge.svg)](https://github.com/zonkyio/ember-web-app/actions)
[![Ember Observer Score](https://emberobserver.com/badges/ember-web-app.svg)](https://emberobserver.com/addons/ember-web-app)
[![Maintainability](https://api.codeclimate.com/v1/badges/3745a4b7af3f134d40ed/maintainability)](https://codeclimate.com/github/zonkyio/ember-web-app/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/3745a4b7af3f134d40ed/test_coverage)](https://codeclimate.com/github/zonkyio/ember-web-app/test_coverage)
Expand Down
1 change: 1 addition & 0 deletions config/ember-try.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ module.exports = function() {
getChannelURL('canary'),
]).then(urls => {
return {
useYarn: true,
scenarios: [
{
name: 'ember-lts-3.8',
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@
"lint:js": "eslint . --cache",
"start": "ember serve",
"test": "ember test",
"test:all": "ember try:each"
"test:all": "ember try:each",
"test:one": "ember try:one",
"deploy": "ember deploy production --activate --verbose"
},
"dependencies": {
"broccoli-asset-rev": "^3.0.0",
Expand Down