-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
121 additions
and
32 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Simple workflow for running static code analysis on GitHub Pages | ||
name: Run static code analysis | ||
|
||
on: | ||
# Runs on pushes targeting the default branch | ||
push: | ||
branches: ["master"] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
jobs: | ||
# Single sast job | ||
sast: | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install packages | ||
run: sudo apt-get update && sudo apt-get upgrade && sudo apt-get -y install clang clang-tidy cppcheck | ||
|
||
- name: Install CodeChecker | ||
run: sudo pipx install CodeChecker --force | ||
|
||
- name: Run sast | ||
run: ./Scripts/RunSast.sh | ||
|
||
# Upload sast artifacts | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: SastArtifacts | ||
path: ./Sast |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
# Simple workflow for run tests on GitHub Actions | ||
name: Run tests | ||
|
||
on: | ||
# Runs on pushes targeting the default branch | ||
push: | ||
branches: ["master"] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
jobs: | ||
# Run project tests | ||
tests: | ||
name: Build and run tests | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install packages | ||
run: sudo apt-get update && sudo apt-get upgrade && sudo apt-get -y install cmake lcov | ||
|
||
- name: Build and run tests | ||
run: ./Scripts/RunTests.sh | ||
|
||
# Upload artifacts to reuse it in next jobs | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: TestArtifacts | ||
path: ./Build | ||
|
||
# Send report with tests result to telegram | ||
telegram: | ||
name: Send report to telegram | ||
needs: tests | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: TestArtifacts | ||
path: ./Build | ||
|
||
- name: Send report to telegram | ||
run: ./.github/TelegramReport/SendCiReportToTelegram.sh ${{ secrets.BOT_ID }} ${{ secrets.CHAT_ID }} ${{ secrets.TOPIC_ID }} | ||
|
||
# Run tests coverage | ||
coverage: | ||
name: Run tests coverage | ||
needs: tests | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install packages | ||
run: sudo apt-get update && sudo apt-get upgrade && sudo apt-get -y install lcov | ||
|
||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: TestArtifacts | ||
path: ./Build | ||
|
||
- name: Run test coverage | ||
run: ./Scripts/TestCoverage.sh | ||
|
||
# Upload coverage artifacts | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: CoverageArtifacts | ||
path: ./Coverage |
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