Skip to content

build(deps): Bump actions/dependency-review-action from 4.3.4 to 4.3.5 #2535

build(deps): Bump actions/dependency-review-action from 4.3.4 to 4.3.5

build(deps): Bump actions/dependency-review-action from 4.3.4 to 4.3.5 #2535

Workflow file for this run

#*********************************************************************
# Copyright (c) Intel Corporation 2020
# SPDX-License-Identifier: Apache-2.0
#*********************************************************************/
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Node.js CI
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x]
steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
egress-policy: audit
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run lint
if: ${{ matrix.node-version == '20.x' }}
- run: npm run compile --if-present
- run: npm test
- name: Test Report
uses: dorny/test-reporter@1a288b62f8b75c0f433cbfdbc2e4800fbae50bd7 # v1
continue-on-error: true
if: success() || failure() # run this step even if previous step failed
with:
name: JEST Tests # Name of the check run which will be created
path: junit.xml # Path to test results
reporter: jest-junit # Format of test results
fail-on-error: 'false'
- uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0
name: Upload Coverage Results
if: ${{ matrix.node-version == '20.x' }}
- run: mv junit.xml wsman-messages-unit.xml
- name: Upload JEST Results
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
with:
name: wsman-messages-unit-test-${{ matrix.node-version }}
path: wsman-messages-unit-${{ matrix.node-version }}.xml