diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..e6a7743 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,26 @@ +name: Install and test amunet +on: [push, pull_request] +env: + CI: true + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + node-version: [10.x, 12.x, 13.x] + os: [ubuntu-latest, windows-latest] + steps: + - uses: actions/checkout@v1 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: npm install + - run: npm run build --if-present + - run: npm test + - name: Coveralls + uses: coverallsapp/github-action@master + with: + github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 283aead..0000000 --- a/.travis.yml +++ /dev/null @@ -1,9 +0,0 @@ -language: node_js -node_js: - - 12 - - 10 - - 8 -cache: npm -before_install: if [[ "$(npm -v)" != "6.6.0" ]]; then npm install --global npm@6.6.0; fi -after_success: -- 'cat coverage/lcov.info | ./node_modules/.bin/coveralls' diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index f084297..0000000 --- a/appveyor.yml +++ /dev/null @@ -1,21 +0,0 @@ -environment: - matrix: - - nodejs_version: 12 - - nodejs_version: 10 - - nodejs_version: 8 -install: - - ps: Install-Product node $env:nodejs_version - - set CI=true - - npm -g install npm@6.6.0 - - set PATH=%APPDATA%\npm;%PATH% - - npm install -matrix: - fast_finish: true -build: off -version: '{build}' -shallow_clone: true -clone_depth: 1 -test_script: - - node --version - - npm --version - - npm test