From 90efb04a1923ba92763e1e8aaa443917382286d3 Mon Sep 17 00:00:00 2001 From: simonihmig Date: Fri, 4 Sep 2020 13:16:13 +0200 Subject: [PATCH] Move CI to Github Actions --- .github/workflows/ci.yml | 75 ++++++++++++++++++++++++++++++++++++++++ .travis.yml | 61 -------------------------------- 2 files changed, 75 insertions(+), 61 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..323d8ca --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,75 @@ +name: CI + +on: + push: + branches: + - master + tags: + - '*' + pull_request: + schedule: + - cron: '0 4 * * 5' # Fridays at 4am + +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:ember + + 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:ember + + test-try: + name: Additional Tests + runs-on: ubuntu-latest + needs: + - test + strategy: + matrix: + scenario: + - ember-lts-3.16 + - ember-release + - ember-beta + - ember-canary + - ember-default-with-jquery + - ember-classic + 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 c24be52..0000000 --- a/.travis.yml +++ /dev/null @@ -1,61 +0,0 @@ ---- -language: node_js -node_js: - # we recommend testing addons with the same minimum supported node version as Ember CLI - # so that your addon works for all apps - - "10" - -dist: xenial - -addons: - chrome: stable - -cache: - yarn: true - -env: - global: - # See https://git.io/vdao3 for details. - - JOBS=1 - -branches: - only: - - master - # npm version tags - - /^v\d+\.\d+\.\d+/ - -jobs: - fast_finish: true - allow_failures: - - env: EMBER_TRY_SCENARIO=ember-canary - - include: - # runs linting and tests with current locked deps - - stage: "Tests" - name: "Tests" - script: - - yarn lint - - yarn test:ember - - - stage: "Additional Tests" - name: "Floating Dependencies" - install: - - yarn install --no-lockfile --non-interactive - script: - - yarn test:ember - - # we recommend new addons test the current and previous LTS - # as well as latest stable release (bonus points to beta/canary) - - env: EMBER_TRY_SCENARIO=ember-lts-3.16 - - env: EMBER_TRY_SCENARIO=ember-release - - env: EMBER_TRY_SCENARIO=ember-beta - - env: EMBER_TRY_SCENARIO=ember-canary - - env: EMBER_TRY_SCENARIO=ember-default-with-jquery - - env: EMBER_TRY_SCENARIO=ember-classic - -before_install: - - curl -o- -L https://yarnpkg.com/install.sh | bash - - export PATH=$HOME/.yarn/bin:$PATH - -script: - - node_modules/.bin/ember try:one $EMBER_TRY_SCENARIO