Update dottest_sa.yml #61
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a basic workflow to help you get started with Actions | |
name: dotTEST Unit Tests | |
# Controls when the action will run. | |
on: | |
# Triggers the workflow on push or pull request events but only for the master branch | |
push: | |
branches: [ main ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
# This workflow contains a single job called "build" | |
dotTEST-UT-execution: | |
# The type of runner that the job will run on | |
runs-on: self-hosted | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
# Depth set to 0 for highest performance | |
- name: Checkout sources | |
uses: actions/checkout@v3 | |
- name: Run dotTEST unit tests | |
id: dottest_ut | |
# You may pin to the exact commit or the version. | |
# uses: tobyash86/run-dottest-analyzer-proto@1bc4be095189f455793afdb10b47127e06ae25ff | |
uses: parasoft/run-dottest-analyzer@master | |
with: | |
# Path to working directory. | |
installDir: c:\Program Files\Parasoft\dotTEST\2022.2 | |
testConfig: Run VSTest Tests with Coverage | |
# --------------------------------------------------------------- | |
# Upload the findings into the GitHub code scanning alert section | |
- name: Upload UT results to GitHub | |
uses: github/codeql-action/upload-sarif@v2 | |
with: | |
sarif_file: ${{ steps.dottest_ut.outputs.report }} | |
# --------------------------------------------------------------- | |
# Archive the findings reports as job artifact | |
- name: Upload execution artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Test Report files | |
path: ${{ steps.dottest_ut.outputs.reportDir }}/*.* | |