Skip to content

build(deps): Bump dorny/test-reporter from 95058 to 1a288 #2433

build(deps): Bump dorny/test-reporter from 95058 to 1a288

build(deps): Bump dorny/test-reporter from 95058 to 1a288 #2433

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@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1
with:
egress-policy: audit
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
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@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.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@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
with:
name: wsman-messages-unit-test-${{ matrix.node-version }}
path: wsman-messages-unit-${{ matrix.node-version }}.xml