Skip to content

Bump the dev-dependencies group with 2 updates (#63) #37

Bump the dev-dependencies group with 2 updates (#63)

Bump the dev-dependencies group with 2 updates (#63) #37

name: Codacy Coverage Reporter
on:
# Runs on pushes targeting the default branch
push:
branches: [ "main" ]
# Allows you to run this workflow manually from the Actions tab
# eslint-disable-next-line yml/no-empty-mapping-value
workflow_dispatch:
# Default to bash
defaults:
run:
shell: bash
env:
NODE_VERSION: 23.x
jobs:
# Build job
build:
runs-on: ${{ vars.UBUNTU_VERSION }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- name: Install Node.js dependencies
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
- name: Run test coverage
run: npm run coverage
- name: Run codacy-coverage-reporter
uses: codacy/codacy-coverage-reporter-action@master
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
# or
# api-token: ${{ secrets.CODACY_API_TOKEN }}
coverage-reports: ./coverage/lcov.info
# or a comma-separated list for multiple reports
# coverage-reports: <PATH_TO_REPORT>, <PATH_TO_REPORT>