Skip to content

Commit

Permalink
Se agrega un flujo de automatización
Browse files Browse the repository at this point in the history
  • Loading branch information
evolentini committed Mar 22, 2024
1 parent 48ccfee commit a1609af
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/verifications.yml
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

0 comments on commit a1609af

Please sign in to comment.