Skip to content

Commit

Permalink
Merge pull request #101 from mansona/github-actions
Browse files Browse the repository at this point in the history
GitHub actions
  • Loading branch information
mansona authored Sep 8, 2021
2 parents bb8282e + e1966e4 commit d53367b
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 39 deletions.
74 changes: 74 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: CI

on:
push:
branches:
- master
- main
- "v*"
pull_request:

env:
NODE_VERSION: 6
FORCE_COLOR: 1

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

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ env.NODE_VERSION }}
- run: yarn
- run: yarn lint:js

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

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ env.NODE_VERSION }}
- run: yarn --ignore-engines
- run: yarn test:ember

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

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ env.NODE_VERSION }}
- run: yarn --no-lockfile --ignore-engines
- run: yarn test:ember

try-scenarios:
name: "ember-try: ${{ matrix.ember-try-scenario }}"
runs-on: ubuntu-latest
timeout-minutes: 7
needs: test

strategy:
fail-fast: false
matrix:
ember-try-scenario:
- ember-lts-2.4
- ember-lts-2.8
- ember-release
- ember-canary

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ env.NODE_VERSION }}
- run: yarn --ignore-engines
- name: test
run: node_modules/.bin/ember try:one ${{ matrix.ember-try-scenario }} --skip-cleanup
37 changes: 0 additions & 37 deletions .travis.yml

This file was deleted.

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
"scripts": {
"build": "ember build",
"start": "ember server",
"test": "ember try:each"
"test": "ember try:each",
"test:ember": "ember test",
"lint:js": "eslint . --cache"
},
"dependencies": {
"broccoli-funnel": "^2.0.0",
Expand Down Expand Up @@ -58,6 +60,6 @@
},
"ember-addon": {
"configPath": "tests/dummy/config",
"demoURL": "https://gcollazo.github.io/ember-cli-showdown/"
"demoURL": "https://mansona.github.io/ember-cli-showdown/"
}
}

0 comments on commit d53367b

Please sign in to comment.