Skip to content

Commit

Permalink
chore: update actions/checkout to v2 (open-telemetry#806)
Browse files Browse the repository at this point in the history
  • Loading branch information
dyladan authored Dec 29, 2021
1 parent 77aefa6 commit c69c202
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,16 @@ jobs:
strategy:
fail-fast: false
matrix:
container: ["node:8", "node:10", "node:12", "node:14", "node:16"]
node: ["8", "10", "12", "14", "16"]
include:
- container: "node:8"
- node: "8"
lerna-extra-args: >-
--ignore @opentelemetry/instrumentation-aws-sdk
--ignore @opentelemetry/instrumentation-pino
- container: "node:10"
- node: "10"
lerna-extra-args: >-
--ignore @opentelemetry/instrumentation-pino
runs-on: ubuntu-latest
container:
image: ${{ matrix.container }}
services:
memcached:
image: memcached:1.6.9-alpine
Expand Down Expand Up @@ -97,7 +95,12 @@ jobs:
CASSANDRA_PORT: 9042
steps:
- name: Checkout
uses: actions/checkout@v1
uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- name: Cache Dependencies
uses: actions/cache@v2
with:
Expand All @@ -110,22 +113,18 @@ jobs:
plugins/node/*/node_modules
plugins/web/*/node_modules
propagators/*/node_modules
key: ${{ runner.os }}-${{ matrix.container }}-${{ hashFiles('**/package.json') }}
key: ${{ runner.os }}-${{ matrix.node }}-${{ hashFiles('**/package.json') }}
- name: Legacy Peer Dependencies for npm 7
if: matrix.container == 'node:16'
if: matrix.node == '16'
run: npm config set legacy-peer-deps=true
- name: Install Root Dependencies
run: npm install --ignore-scripts
- name: Fix npm cache permissions
run: |
chown -R 1001:121 "/github/home/.npm"
[ -e /__w/opentelemetry-js-contrib/opentelemetry-js-contrib/package-lock.json ] && chown 1001:121 /__w/opentelemetry-js-contrib/opentelemetry-js-contrib/package-lock.json
- name: Bootstrap Dependencies
run: npx lerna bootstrap --no-ci --hoist --nohoist='zone.js' --nohoist='mocha' --nohoist='ts-mocha'
- name: Unit tests
run: npm run test:ci:changed -- ${{ matrix.lerna-extra-args }}
- name: Report Coverage
if: matrix.container == 'node:14'
if: matrix.node == '14'
run: npm run codecov:ci:changed
browser-tests:
runs-on: ubuntu-latest
Expand All @@ -134,10 +133,12 @@ jobs:
env:
NPM_CONFIG_UNSAFE_PERM: true
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Permission Setup
run: sudo chmod -R 777 /github /__w
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Cache Dependencies
uses: actions/cache@v2
with:
Expand All @@ -150,7 +151,7 @@ jobs:
plugins/node/*/node_modules
plugins/web/*/node_modules
propagators/*/node_modules
key: ${{ runner.os }}-node:12-${{ hashFiles('**/package.json') }}
key: ${{ runner.os }}-browser-${{ hashFiles('**/package.json') }}
- name: Install Root Dependencies
run: npm install --ignore-scripts
- name: Bootstrap Dependencies
Expand Down

0 comments on commit c69c202

Please sign in to comment.