Skip to content

Merge pull request #12 from holidays-rest/dependabot/npm_and_yarn/vit… #37

Merge pull request #12 from holidays-rest/dependabot/npm_and_yarn/vit…

Merge pull request #12 from holidays-rest/dependabot/npm_and_yarn/vit… #37

Workflow file for this run

name: Test
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
test:
name: Test (Node ${{ matrix.node-version }})
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ["20", "22", "24"]
steps:
- uses: actions/checkout@v6
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Type-check
run: npm run typecheck
- name: Run tests with coverage
run: npm run test:coverage
- name: Upload coverage to Codacy
if: matrix.node-version == '24'
uses: codacy/codacy-coverage-reporter-action@v1
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: coverage/lcov.info