Node 20 and prom-client 15 support #160
Workflow file for this run
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
name: Lint and Test | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
paths-ignore: | |
- '*.md' | |
- 'docs/**' | |
jobs: | |
test: | |
strategy: | |
matrix: | |
node-version: [16, 18, 20] | |
runs-on: ubuntu-latest | |
name: Test Node.js ${{ matrix.node-version }} with prom-client ${{ matrix.prom-client-version }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node.js, PNPM and install deps | |
uses: ./.github/actions/setup-with-deps-action | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Test and Coverage | |
run: pnpm test:coverage | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
files: coverage/lcov.info | |
name: ${{ matrix.node-version }} | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node.js, PNPM and install deps | |
uses: ./.github/actions/setup-with-deps-action | |
with: | |
node-version: 20 | |
- name: Lint | |
run: pnpm lint |