Skip to content

Commit

Permalink
chore: node version matrix in ci (#470)
Browse files Browse the repository at this point in the history
Similar to open-feature/js-sdk-contrib#430

---------

Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
Co-authored-by: Moritz Wiesinger <moritz.wiesinger@dynatrace.com>
  • Loading branch information
toddbaert and mowies authored Jun 29, 2023
1 parent c49ac5b commit 4be22dd
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions .github/workflows/pr-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,19 @@ on:
jobs:
build-test-lint:
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 16.x
- 18.x
- 20.x

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: 16
node-version: ${{ matrix.node-version }}
cache: 'npm'

- name: Install
Expand All @@ -32,6 +39,19 @@ jobs:
- name: Test
run: npm run test

codecov-and-docs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'npm'

- name: Install
run: npm ci

- name: Docs
run: npm run docs

Expand Down

0 comments on commit 4be22dd

Please sign in to comment.