From 08896aed6eb8284d1b6765ad5d27942e81697589 Mon Sep 17 00:00:00 2001 From: Vlad Filippov Date: Mon, 24 May 2021 10:15:03 -0400 Subject: [PATCH] Switch to Actions --- .github/workflows/test.yml | 39 ++++++++++++++++++++++++++++++++++++++ .travis.yml | 12 ------------ appveyor.yml | 27 -------------------------- 3 files changed, 39 insertions(+), 39 deletions(-) create mode 100644 .github/workflows/test.yml delete mode 100644 .travis.yml delete mode 100644 appveyor.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 000000000..677dad4db --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,39 @@ +name: Tests + +on: [push, pull_request] + +env: + FORCE_COLOR: 2 + +jobs: + run: + name: Node ${{ matrix.node }} on ${{ matrix.os }} + runs-on: ${{ matrix.os }} + + strategy: + fail-fast: false + matrix: + node: [10, 12, 14] + os: [ubuntu-latest, windows-latest] + + steps: + - name: Clone repository + uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node }} + + - name: Install npm dependencies + run: npm ci + + - name: Run tests + run: npm test + + # We test multiple Windows shells because of prior stdout buffering issues + # filed against Grunt. https://github.com/joyent/node/issues/3584 + - name: Run PowerShell tests + run: "npm test # PowerShell" # Pass comment to PS for easier debugging + shell: powershell + if: startsWith(matrix.os, 'windows') diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 1fbaa3e3c..000000000 --- a/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -sudo: false -language: node_js -node_js: - - "8" - - "10" - - "12" -before_install: - - if [[ `npm -v` =~ ^[1-2] ]]; then npm i -g npm@3; fi -before_script: - - npm uninstall grunt # https://github.com/npm/npm/issues/3958 -matrix: - fast_finish: true diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index 87e8c4dae..000000000 --- a/appveyor.yml +++ /dev/null @@ -1,27 +0,0 @@ -# Fix line endings on Windows -init: - - git config --global core.autocrlf true -# What combinations to test -environment: - matrix: - - nodejs_version: "8" - - nodejs_version: "10" - - nodejs_version: "12" -platform: - - x86 - - x64 -install: - - ps: Install-Product node $env:nodejs_version - - npm install -test_script: - # Output useful info for debugging. - - node --version && npm --version - # We test multiple Windows shells because of prior stdout buffering issues - # filed against Grunt. https://github.com/joyent/node/issues/3584 - - ps: "npm test # PowerShell" # Pass comment to PS for easier debugging - - cmd: npm test -build: off -matrix: - fast_finish: true -cache: - - node_modules -> package.json # local npm modules