diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..096187f --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,74 @@ +name: CI + +on: + push: + branches: + - master + tags: + - '*' + pull_request: + schedule: + - cron: '0 8 * * 1' # Mondays at 8am + +jobs: + test: + name: Tests + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + - name: Setup node.js + uses: actions/setup-node@v1 + with: + node-version: 10 + - name: Install dependencies + uses: bahmutov/npm-install@v1 + - name: Lint + run: yarn lint + - name: Test + run: yarn test + + test-no-lock: + name: Floating Dependencies + runs-on: ubuntu-latest + needs: + - test + steps: + - name: Checkout code + uses: actions/checkout@v2 + - name: Setup node.js + uses: actions/setup-node@v1 + with: + node-version: 10 + - name: Install dependencies + uses: bahmutov/npm-install@v1 + with: + useLockFile: false + - name: Test + run: yarn test + + test-try: + name: Additional Tests + runs-on: ubuntu-latest + needs: + - test + strategy: + matrix: + scenario: + - ember-lts-3.16 + - ember-lts-3.20 + - ember-release + - ember-beta + - ember-canary + steps: + - name: Checkout code + uses: actions/checkout@v2 + - name: Setup node.js + uses: actions/setup-node@v1 + with: + node-version: 10 + - name: Install dependencies + uses: bahmutov/npm-install@v1 + - name: Test + run: yarn ember try:one ${{ matrix.scenario }} diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 01f05bb..0000000 --- a/.travis.yml +++ /dev/null @@ -1,21 +0,0 @@ ---- -language: node_js -node_js: - - "10" - -sudo: false - -cache: - yarn: true - -before_install: - - curl -o- -L https://yarnpkg.com/install.sh | bash - - export PATH=$HOME/.yarn/bin:$PATH - -install: - - yarn install --no-lockfile --non-interactive --ignore-engines - -script: - - yarn lint - - yarn test - diff --git a/config/ember-try.js b/config/ember-try.js index 779a4f9..f0f2b09 100644 --- a/config/ember-try.js +++ b/config/ember-try.js @@ -5,6 +5,7 @@ const getChannelURL = require('ember-source-channel-url'); module.exports = async function() { return { useYarn: true, + command: 'yarn test', scenarios: [ { name: 'ember-lts-3.16',