diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..823ccc50 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,38 @@ +name: CI + +on: + push: + branches: + - master + pull_request: + +jobs: + linting: + name: Linting + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 10.x + + - run: yarn install --frozen-lockfile --non-interactive + - run: yarn lint:js + + tests: + name: 'Tests: ${{ matrix.os }}' + runs-on: '${{ matrix.os }}-latest' + + strategy: + matrix: + os: [ubuntu, macOS, windows] + + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 10.x + + - run: yarn install --frozen-lockfile --non-interactive + - run: yarn test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index c9830dde..00000000 --- a/.travis.yml +++ /dev/null @@ -1,23 +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" - -sudo: false -dist: trusty - -addons: - chrome: stable - -cache: yarn - -script: - - yarn lint:js - - yarn test - -# We build PRs, but don't trigger separate builds for the PR from the branch. -branches: - only: - - master diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index 6486dfc5..00000000 --- a/appveyor.yml +++ /dev/null @@ -1,41 +0,0 @@ -# http://www.appveyor.com/docs/appveyor-yml - -# Fix line endings in Windows. (runs before repo cloning) -init: - - git config --global core.autocrlf true - -# Test against these versions of Node.js. -environment: - matrix: - - nodejs_version: "10" - -# Install scripts. (runs after repo cloning) -install: - - git rev-parse HEAD - # Get the latest stable version of Node 0.STABLE.latest - - ps: Install-Product node $env:nodejs_version - # hide python so node-gyp won't try to build native extentions - - rename C:\Python27 Python27hidden - # Typical npm stuff. - - md C:\nc - - yarn - -cache: - - "%LOCALAPPDATA%\\Yarn" - -# Post-install test scripts. -test_script: - # Output useful info for debugging. - - yarn versions - - cmd: yarn test - -# Don't actually build. -build: off - -# Set build version format here instead of in the admin panel. -version: "{build}" - -# We build PRs, but don't trigger separate builds for the PR from the branch. -branches: - only: - - master diff --git a/azure-pipelines.yml b/azure-pipelines.yml deleted file mode 100644 index 54d9a51f..00000000 --- a/azure-pipelines.yml +++ /dev/null @@ -1,38 +0,0 @@ -# Node.js -# Build a general Node.js project with npm. -# Add steps that analyze code, save build artifacts, deploy, and more: -# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript -pool: - vmImage: 'vs2017-win2016' - -trigger: - paths: - exclude: - - README.md - - CHANGELOG.md - - CODE_OF_CONDUCT.md -steps: - - task: NodeTool@0 - inputs: - versionSpec: '10.x' - displayName: 'Install Node.js' - - - script: | - npm install -g yarn ember-cli ts-node mocha - displayName: 'Setup global tools' - - - script: | - yarn install - displayName: 'Build' - - - script: | - mocha --recursive node-tests -R xunit > node-tests.xml - displayName: 'Node Tests' - - script: | - echo " --- NODE TESTS --- " && cat node-tests.xml - displayName: 'Log test output files' - - - task: PublishTestResults@2 - inputs: - testResultsFormat: 'jUnit' - testResultsFiles: '*-tests.xml'