Skip to content

Commit

Permalink
add CI github action flow and remove travis ci integration (#7)
Browse files Browse the repository at this point in the history
* add CI github action flow

* fix GH action flow config file

* remove npm lock file

* update yarn.lock file

* clean GH ci flow file

* refactor GH ci action, for travis removal

* fix GH ci action syntax

* fix GH ci action ember-try

* fix GH ci action for ember test

* update yarn.lock file

* remove travis.yml in favor of GH actions
  • Loading branch information
vitebski authored Oct 11, 2020
1 parent 25d78b5 commit 139e4b0
Show file tree
Hide file tree
Showing 5 changed files with 162 additions and 17,778 deletions.
77 changes: 77 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
name: CI

on:
push:
branches:
- master
pull_request:

jobs:
tests:
name: Lint & Tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node-version: ['10', '12', '14']
steps:
- name: Check out a copy of the repo
uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"

- uses: actions/cache@v2
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- run: yarn install --frozen-lockfile --non-interactive

- run: yarn lint
- run: yarn test:ember

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

runs-on: ubuntu-latest

strategy:
fail-fast: false
max-parallel: 1
matrix:
os: [ubuntu-latest]
node-version: ['10']
scenario: [ember-lts-3.16, ember-lts-3.20, ember-release, ember-beta, ember-canary, ember-default-with-jquery, ember-classic]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"

- uses: actions/cache@v2
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- run: yarn install --frozen-lockfile --non-interactive

- name: Running ember-try schenario for ${{ matrix.scenario }}
run: yarn ember try:one ${{ matrix.scenario }}
59 changes: 0 additions & 59 deletions .travis.yml

This file was deleted.

Loading

0 comments on commit 139e4b0

Please sign in to comment.