Skip to content

Merge pull request #212 from hrshrmsh/patch-1 #331

Merge pull request #212 from hrshrmsh/patch-1

Merge pull request #212 from hrshrmsh/patch-1 #331

Workflow file for this run

name: Node.js CI
permissions:
contents: read
on:
push:
branches: [main, master, develop]
pull_request:
branches: [main, master, develop]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ["lts/*", "latest"]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
name: Install pnpm
with:
run_install: false
- name: Install Node.js
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- run: pnpm run build
- run: pnpm exec vitest --coverage.enabled true
- name: "Report Coverage"
if: matrix.node-version == 'lts/*'
uses: davelosert/vitest-coverage-report-action@8ab049ff5a2c6e78f78af446329379b318544a1a # v2.8.3