Skip to content

Fix security alerts #25

Fix security alerts

Fix security alerts #25

Workflow file for this run

# Copyright (c) 2023-2024 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']
jobs:
lint-job:
name: "Run linters"
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Run Linters
uses: pre-commit/[email protected]
build:
runs-on: ubuntu-latest
name: Run unit tests and publish package on main
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
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: 5monkeys/cobertura-action@master
with:
path: coverage/cobertura-coverage.xml
minimum_coverage: 80
show_line: true
show_branch: true
fail_below_threshold: false