38 npm-i: mocha@3.5.3 nyc@10.3.2 supertest@2.0.0
42 npm-i: mocha@3.5.3 nyc@10.3.2 supertest@2.0.0
46 npm-i: mocha@3.5.3 nyc@10.3.2 supertest@2.0.0
50 npm-i: mocha@3.5.3 nyc@10.3.2 supertest@2.0.0
54 npm-i: mocha@3.5.3 nyc@10.3.2 supertest@2.0.0
58 npm-i: mocha@5.2.0 nyc@11.9.0 supertest@3.4.2
62 npm-i: mocha@5.2.0 nyc@11.9.0 supertest@3.4.2
66 npm-i: mocha@6.2.2 nyc@14.1.1 supertest@3.4.2
70 npm-i: mocha@6.2.2 nyc@14.1.1 supertest@6.1.6
101 node-version: "16.15"
110 - uses: actions/checkout@v2
112 - name: Install Node.js ${{ matrix.node-version }}
113 shell: bash -eo pipefail -l {0}
115 nvm install --default ${{ matrix.node-version }}
116 dirname "$(nvm which ${{ matrix.node-version }})" >> "$GITHUB_PATH"
118 - name: Configure npm
120 npm config set loglevel error
121 npm config set shrinkwrap false
123 - name: Install npm module(s) ${{ matrix.npm-i }}
124 run: npm install --save-dev ${{ matrix.npm-i }}
125 if: matrix.npm-i != ''
127 - name: Remove non-test dependencies
128 run: npm rm --silent --save-dev connect-redis
130 - name: Setup Node.js version-specific dependencies
134 # - remove on Node.js < 10
135 if [[ "$(cut -d. -f1 <<< "${{ matrix.node-version }}")" -lt 10 ]]; then
136 node -pe 'Object.keys(require("./package").devDependencies).join("\n")' | \
137 grep -E '^eslint(-|$)' | \
139 xargs -n1 npm rm --silent --save-dev
142 - name: Install Node.js dependencies
145 - name: List environment
149 echo "node@$(node -v)"
152 (npm -s ls --depth=0 ||:) | awk -F'[ @]' 'NR>1 && $2 { print "::set-output name=" $2 "::" $3 }'
159 if: steps.list_env.outputs.eslint != ''
162 - name: Collect code coverage
163 uses: coverallsapp/github-action@master
165 github-token: ${{ secrets.GITHUB_TOKEN }}
166 flag-name: run-${{ matrix.test_number }}
171 runs-on: ubuntu-latest
173 - name: Upload code coverage
174 uses: coverallsapp/github-action@master
176 github-token: ${{ secrets.github_token }}
177 parallel-finished: true