Skip to content

Bump serialize-javascript and mocha #46

Bump serialize-javascript and mocha

Bump serialize-javascript and mocha #46

Workflow file for this run

# Copyright (c) 2023-2025 Contributors to the Eclipse Foundation
#
# This program and the accompanying materials are made available under the
# terms of the Apache License, Version 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0.
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
# SPDX-License-Identifier: Apache-2.0
name: Run unit tests and coverage
on:
push:
branches: ['main']
pull_request:
branches: ['main']
workflow_dispatch:
jobs:
lint-job:
name: "Run linters"
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run Linters
uses: pre-commit/action@v3.0.1
build:
runs-on: ubuntu-latest
name: Run unit tests and report coverage
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 'lts/Hydrogen'
check-latest: true
registry-url: 'https://npm.pkg.github.com'
scope: '@eclipse-velocitas'
- run: npm ci
- run: npm run build
- run: npm run coverage
- uses: irongut/CodeCoverageSummary@v1.3.0
with:
filename: coverage/cobertura-coverage.xml
badge: true
format: markdown
hide_complexity: true
indicators: true
output: both
- run: |
cat code-coverage-results.md >> $GITHUB_STEP_SUMMARY