Merge pull request #120 from iamelevich/renovate/node-20.x-lockfile #483
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 }} | |
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 |