Originally posted by **sgannap** January 30, 2023
Here is my workflow file:
name: Node.js CI
on:
push:
branches:
- '*' # matches every branch that doesn't contain a '/'
- '*/*' # matches every branch containing a single '/'
- '**' # matches every branch
pull_request:
branches:
- SmokeSuite
- PreRelease
schedule:
- cron: "5 */4 * * *"
jobs:
build:
runs-on: "QA-Automation"
strategy:
matrix:
node-version: [16]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm run webtests
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.7'
- name: Publish Test Results
uses: test-summary/action@v1
if: always()
with:
paths: |
"junit_reports/*.xml"
- name: Test Report
uses: dorny/test-reporter@v1
if: success() || failure() # run this step even if previous step failed
with:
name: Junit Tests # Name of the check run which will be created
path: "junit_reports/*.xml" # Path to test results
reporter: java-junit # Format of test results
Test-reports are working as expected but not the summary part
Discussed in https://github.com/test-summary/action/discussions/23