Skip to content
Myr

build: use GitHub Actions instead of Travis CI

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Douglas Christopher Wilson · committed by Douglas Christopher Wilson · parent 28db2c2 · Browse files · 3 files+137 added−80 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+137 added−80 removed

  • other:+137 added−80 removed

3 files+137 added−80 removed

added:.github/workflows/ci.yml+134 added
1name: ci23on:4- pull_request5- push67jobs:8 test:9 runs-on: ubuntu-latest10 strategy:11 matrix:12 name:13 - Node.js 0.1014 - Node.js 0.1215 - io.js 1.x16 - io.js 2.x17 - io.js 3.x18 - Node.js 4.x19 - Node.js 5.x20 - Node.js 6.x21 - Node.js 7.x22 - Node.js 8.x23 - Node.js 9.x24 - Node.js 10.x25 - Node.js 11.x26 - Node.js 12.x2728 include:29 - name: Node.js 0.1030 node-version: "0.10"31 npm-i: mocha@3.5.3 supertest@2.0.03233 - name: Node.js 0.1234 node-version: "0.12"35 npm-i: mocha@3.5.3 supertest@2.0.03637 - name: io.js 1.x38 node-version: "1.8"39 npm-i: mocha@3.5.3 supertest@2.0.04041 - name: io.js 2.x42 node-version: "2.5"43 npm-i: mocha@3.5.3 supertest@2.0.04445 - name: io.js 3.x46 node-version: "3.3"47 npm-i: mocha@3.5.3 supertest@2.0.04849 - name: Node.js 4.x50 node-version: "4.9"51 npm-i: mocha@5.2.0 supertest@3.4.25253 - name: Node.js 5.x54 node-version: "5.12"55 npm-i: mocha@5.2.0 supertest@3.4.25657 - name: Node.js 6.x58 node-version: "6.17"59 npm-i: mocha@6.2.26061 - name: Node.js 7.x62 node-version: "7.10"63 npm-i: mocha@6.2.26465 - name: Node.js 8.x66 node-version: "8.17"67 npm-i: mocha@7.2.06869 - name: Node.js 9.x70 node-version: "9.11"71 npm-i: mocha@7.2.07273 - name: Node.js 10.x74 node-version: "10.23"7576 - name: Node.js 11.x77 node-version: "11.15"7879 - name: Node.js 12.x80 node-version: "12.18"8182 steps:83 - uses: actions/checkout@v28485 - name: Install Node.js ${{ matrix.node-version }}86 shell: bash -eo pipefail -l {0}87 run: |88 nvm install --default ${{ matrix.node-version }}89 dirname "$(nvm which ${{ matrix.node-version }})" >> "$GITHUB_PATH"9091 - name: Configure npm92 run: npm config set shrinkwrap false9394 - name: Install npm module(s) ${{ matrix.npm-i }}95 run: npm install --save-dev ${{ matrix.npm-i }}96 if: matrix.npm-i != ''9798 - name: Remove non-test dependencies99 run: npm rm --silent --save-dev connect-redis100101 - name: Install Node.js dependencies102 run: npm install103104 - name: List environment105 id: list_env106 shell: bash107 run: |108 echo "node@$(node -v)"109 echo "npm@$(npm -v)"110 npm -s ls ||:111112 - name: Run tests113 shell: bash114 run: npm run test-ci115116 - name: Lint code117 run: npm run lint118119 - name: Collect code coverage120 uses: coverallsapp/github-action@master121 with:122 github-token: ${{ secrets.GITHUB_TOKEN }}123 flag-name: run-${{ matrix.test_number }}124 parallel: true125126 coverage:127 needs: test128 runs-on: ubuntu-latest129 steps:130 - name: Upload code coverage131 uses: coverallsapp/github-action@master132 with:133 github-token: ${{ secrets.github_token }}134 parallel-finished: true
deleted:.travis.yml-77 removed
modified:Readme.md+3 added-3 removed