-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Se agrega un flujo de automatización
- Loading branch information
1 parent
48ccfee
commit a1609af
Showing
1 changed file
with
55 additions
and
0 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,55 @@ | ||
name: Validations | ||
|
||
on: | ||
pull_request: | ||
branches: [main] | ||
|
||
permissions: | ||
contents: read | ||
actions: read | ||
checks: write | ||
pull-requests: write | ||
|
||
jobs: | ||
verifications: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v4 | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: "2.7" | ||
- name: Install Ceedling | ||
run: gem install ceedling | ||
- name: Install GCov Reporter | ||
run: pip install gcovr | ||
- name: Run Format Validations | ||
uses: pre-commit/[email protected] | ||
- name: Run Unit Tests | ||
run: ceedling clobber gcov:all utils:gcov | ||
- name: Test Report | ||
uses: dorny/test-reporter@v1 | ||
if: success() || failure() | ||
with: | ||
name: Ceedling Unit Tests | ||
path: build/artifacts/gcov/report.xml | ||
reporter: jest-junit | ||
- name: Code Coverage Report | ||
uses: irongut/[email protected] | ||
with: | ||
filename: build/artifacts/gcov/GcovCoverageCobertura.xml | ||
badge: true | ||
format: markdown | ||
hide_branch_rate: false | ||
hide_complexity: false | ||
indicators: true | ||
output: both | ||
thresholds: "60 80" | ||
- name: Output to Job Summary | ||
run: cat code-coverage-results.md >> $GITHUB_STEP_SUMMARY | ||
- name: Add Coverage PR Comment | ||
uses: marocchino/sticky-pull-request-comment@v2 | ||
if: github.event_name == 'pull_request' | ||
with: | ||
recreate: true | ||
path: code-coverage-results.md |