diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml new file mode 100644 index 000000000..f44c7dfc1 --- /dev/null +++ b/.github/workflows/ci-build.yml @@ -0,0 +1,66 @@ +name: CI Build + +on: + push: + branches: + - master + - 'v*' + pull_request: + schedule: + - cron: '0 3 * * *' # daily, at 3am + +jobs: + test: + name: Tests + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - uses: volta-cli@action@v1 + with: + node-version: 10.x + - run: yarn install --frozen-lockfile + - run: yarn lint:js + - run: yarn test + + floating-dependencies: + name: "Floating Dependencies" + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - uses: volta-cli@action@v1 + with: + node-version: 10.x + - run: yarn install --no-lockfile + - run: yarn test + + try-scenarios: + name: "Try: ${{ matrix.ember-try-scenario }}" + + runs-on: ubuntu-latest + + needs: test + + strategy: + fail-fast: true + matrix: + ember-try-scenario: + - ember-lts-3.8 + - ember-lts-3.12 + - ember-lts-3.16 + - ember-release + - ember-beta + - ember-canary + - ember-default-with-jquery + - ember-without-application-wrapper + + steps: + - uses: actions/checkout@v2 + - uses: volta-cli@action@v1 + with: + node-version: 12.x + - name: install dependencies + run: yarn install --frozen-lockfile + - name: test + run: node_modules/.bin/ember try:one ${{ matrix.ember-try-scenario }} --skip-cleanup diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 9dfc30fbb..000000000 --- a/.travis.yml +++ /dev/null @@ -1,81 +0,0 @@ ---- -language: node_js -node_js: - - '10' - -branches: - only: - - master - - /^v\d+\.\d+\.\d+/ # version tags - - /^v\d+-(\d+|x)(-x)?/ # version branches - -addons: - chrome: stable - firefox: latest-esr - -cache: - yarn: true - -stages: - - test - - older version tests - - deploy - -env: - global: - # See https://git.io/vdao3 for details. - - JOBS=1 - -jobs: - fail_fast: true - allow_failures: - - env: EMBER_TRY_SCENARIO=ember-canary - - include: - # runs tests with current locked deps and linting - - stage: test - name: 'test' - script: - - yarn lint - - yarn test - - name: 'floating dependencies' - install: yarn install --no-lockfile --non-interactive --ignore-engines - script: yarn test - - # runs tests against each supported Ember version - - stage: older version tests - env: EMBER_TRY_SCENARIO=ember-lts-3.8 - - env: EMBER_TRY_SCENARIO=ember-lts-3.12 - - 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-without-application-wrapper - - # runs deploy if running on a specific tag - - stage: deploy - if: tag IS present - name: 'npm-publish' - install: yarn global add auto-dist-tag@0.1 - script: auto-dist-tag --write - deploy: - provider: npm - email: stefan.penner+ember-cli@gmail.com - api_key: - secure: rKej7q7tP+K3XUsKftqVhw8/Tgx6pn30OzV0g39RGVTRjWKvLu36UlF3LtP0AfofIKqsnPcvy+VaV9uCOOFiG6xBlXtVjxtqbplBmvKU1SjBHrwtlK61SdlXNKwIagWxBSbCUNxj+ka0d8gpIxS+sNw4sKGWHufH0CoAjpkerog= - on: - tags: true - repo: emberjs/ember-test-helpers - -before_install: - - curl -o- -L https://yarnpkg.com/install.sh | bash - - export PATH=$HOME/.yarn/bin:$PATH - -install: - - yarn install --ignore-engines - -script: - # Usually, it's ok to finish the test scenario without reverting - # to the addon's original dependency state, skipping "cleanup". - - node_modules/.bin/ember try:one $EMBER_TRY_SCENARIO --skip-cleanup diff --git a/README.md b/README.md index e1472c87e..f158e0b4d 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,6 @@ @ember/test-helpers ============================================================================== -[![Build Status](https://secure.travis-ci.org/emberjs/ember-test-helpers.svg?branch=master)](http://travis-ci.org/emberjs/ember-test-helpers) - A test-framework-agnostic set of helpers for testing Ember.js applications diff --git a/package.json b/package.json index 1017b10da..522518562 100644 --- a/package.json +++ b/package.json @@ -115,5 +115,9 @@ "github": { "release": true } + }, + "volta": { + "node": "10.20.1", + "yarn": "1.22.4" } }