Skip to content

Commit

Permalink
Update pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrpepek committed Nov 17, 2023
1 parent 197bc43 commit ee5a97d
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

# This is a basic workflow to help you get started with the Run C/C++test action for Make-based project.
name: C/C++test with Make

Expand All @@ -19,12 +20,20 @@ jobs:
# Specifies the type of runner that the job will run on.
runs-on: self-hosted

# Specifies required permissions for upload-sarif action
permissions:
# required for all workflows
security-events: write
# only required for workflows in private repositories
actions: read
contents: read

# Steps represent a sequence of tasks that will be executed as part of the job.
steps:

# Checks out your repository under $GITHUB_WORKSPACE, so that your job can access it.
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3

# Builds your Make project using 'cpptesttrace' to collect input data for code analysis.
# Be sure 'cpptesttrace' is available on $PATH.
Expand All @@ -34,7 +43,7 @@ jobs:
# Runs code analysis with C/C++test.
- name: Run C/C++test
# Use the 'run-cpptest-action' GitHub action.
uses: parasoft/run-cpptest-action@1.0.1
uses: parasoft/run-cpptest-action@2.0.1
# Uncomment if you are using C/C++test 2020.2 to generate a SARIF report:
# with:
# reportFormat: xml,html,custom
Expand All @@ -50,7 +59,7 @@ jobs:
# Uploads an archive that includes all report files (.xml, .html, .sarif).
- name: Archive reports
if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: CpptestReports
path: reports/*.*

0 comments on commit ee5a97d

Please sign in to comment.