From 830610d6dabe3fac5317ef30465b974667ada765 Mon Sep 17 00:00:00 2001 From: mdeanjones Date: Sun, 25 Dec 2022 13:22:26 -0500 Subject: [PATCH] ci: remove old Travis and Coveralls assets, update CI action --- .github/workflows/ci.yml | 10 ++++------ .travis.yml | 21 --------------------- package.json | 10 +++------- 3 files changed, 7 insertions(+), 34 deletions(-) delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 07542ac..ec2ef2e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,21 +11,19 @@ jobs: test: name: Test runs-on: ubuntu-latest - + strategy: matrix: node-version: [14.x, 16.x, 18.x] steps: - uses: actions/checkout@v3 - - uses: volta-cli/action@v1 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + - uses: volta-cli/action@v3 with: node-version: ${{ matrix.node-version }} - - name: Run Tests + - name: Run Tests (Node ${{ matrix.node-version }}) run: | - npm install --legacy-peer-deps + npm install npm run test-coverage - name: Coveralls uses: coverallsapp/github-action@master diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 8948056..0000000 --- a/.travis.yml +++ /dev/null @@ -1,21 +0,0 @@ -language: node_js -cache: - directories: - - ~/.npm -notifications: - email: false -node_js: - - 'lts/*' - - '14' -jobs: - allow_failures: - node_js: 'lts/*' -after_success: - - npm run travis-deploy-once "npm run semantic-release" -branches: - except: - - /^v\d+\.\d+\.\d+$/ -script: - - npm run lint - - npm run test-coverage - - npm run coveralls || true diff --git a/package.json b/package.json index 4e04c67..5e8ba6c 100644 --- a/package.json +++ b/package.json @@ -10,9 +10,7 @@ "lint": "eslint . --cache", "test": "mocha -R spec test --bail", "test-coverage": "istanbul cover _mocha --report lcovonly -- -R spec test --bail", - "coveralls": "cat ./coverage/lcov.info | coveralls", - "semantic-release": "semantic-release", - "travis-deploy-once": "travis-deploy-once" + "semantic-release": "semantic-release" }, "bin": { "lcov-result-merger": "./bin/lcov-result-merger.js" @@ -45,7 +43,6 @@ "devDependencies": { "@types/yargs": "^17.0.10", "chai": "^4.1.2", - "coveralls": "^3.0.0", "cz-conventional-changelog": "^3.0.1", "eslint": "^8.30.0", "eslint-config-prettier": "^8.5.0", @@ -56,8 +53,7 @@ "mocha": "^10.0.0", "prettier": "2.8.1", "rimraf": "^2.6.3", - "semantic-release": "^19.0.3", - "travis-deploy-once": "^3.0.0" + "semantic-release": "^19.0.3" }, "engines": { "node": ">=14" @@ -69,7 +65,7 @@ }, "version": "4.0.0", "volta": { - "node": "10.23.1", + "node": "14.17.3", "npm": "7.18.1" } }