This repository has been archived by the owner on Oct 3, 2023. It is now read-only.
fix(deps): update all non-major dependencies #920
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: [master] | |
pull_request: | |
name: ci | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
node: [8, 10, 12, 14, 16] | |
include: | |
# use npm 7 by default | |
- npm-version: ^7 | |
- node: 8 | |
# overrides for node 8 | |
npm-version: ^6 | |
lerna-extra-args: >- | |
--ignore @opencensus/exporter-stackdriver | |
--ignore @opencensus/resource-util | |
--no-private | |
env: | |
OPENCENSUS_MONGODB_TESTS: 1 | |
OPENCENSUS_REDIS_TESTS: 1 | |
services: | |
mongo_service: | |
image: mongo:5 | |
ports: ["27017:27017"] | |
redis_service: | |
image: redis | |
ports: ["6379:6379"] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node }} | |
- uses: actions/cache@v2 | |
with: | |
path: ~/.npm | |
key: v1-node-${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
v1-node-${{ matrix.node }}- | |
v1-node- | |
- name: Upgrade to latest npm | |
run: npm install -g npm@${{ matrix.npm-version }} | |
- name: Print node/npm version | |
run: node --version && npm --version | |
# compile runs in prepare | |
- name: Install modules and dependencies, compile | |
run: | | |
npm install --ignore-scripts | |
npm run bootstrap -- ${{ matrix.lerna-extra-args }} | |
# lint runs in posttest | |
- name: Run unit tests and lint | |
run: npm run test -- ${{ matrix.lerna-extra-args }} | |
- name: Submit coverage data to codecov. | |
run: npm run codecov -- ${{ matrix.lerna-extra-args }} | |
if: ${{ success() && matrix.node == '12' }} |