From 9c3ca6d457e4f390e3a30a743def3998848a1a90 Mon Sep 17 00:00:00 2001 From: Chris Manson Date: Mon, 18 Sep 2023 17:30:13 +0100 Subject: [PATCH] move from travis and appveyor to github actions --- .github/workflows/ci.yaml | 26 ++++++++++++++++++++++++++ .travis.yml | 17 ----------------- appveyor.yml | 37 ------------------------------------- 3 files changed, 26 insertions(+), 54 deletions(-) create mode 100644 .github/workflows/ci.yaml delete mode 100644 .travis.yml delete mode 100644 appveyor.yml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..22c45ac --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,26 @@ +name: Node.js CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + + +jobs: + test: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [4.x, 6.x, 8.x] + os: ['ubuntu-latest', 'macos-latest', 'windows-latest'] + + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + + - run: npm install + - run: npm test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index c06a95e..0000000 --- a/.travis.yml +++ /dev/null @@ -1,17 +0,0 @@ -language: node_js -node_js: - - '4' - - '6' - - '8' - - 'stable' - -install: - - time npm install - -script: - - npm run test:coverage - -after_success: - - cat ./coverage/lcov.info | npm run coveralls - -sudo: false diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index 453a7a5..0000000 --- a/appveyor.yml +++ /dev/null @@ -1,37 +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: "4" - - nodejs_version: "6" - - nodejs_version: "8" - -# Install scripts. (runs after repo cloning) -install: - # Get the latest stable version of Node 0.STABLE.latest - - ps: Install-Product node $env:nodejs_version - # Typical npm stuff. - - md C:\nc - - npm install -g npm@latest - # Workaround https://github.com/npm/npm/wiki/Troubleshooting#upgrading-on-windows - - set PATH=%APPDATA%\npm;%PATH% - - npm config set cache C:\nc - - npm version - - npm install - -# Post-install test scripts. -test_script: - # Output useful info for debugging. - - npm version - - cmd: npm test - -# Don't actually build. -build: off - -# Set build version format here instead of in the admin panel. -version: "{build}"