Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Agregado de la carpeta .github para integracion continua #1

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/action@v3.0.0
- 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/CodeCoverageSummary@v1.3.0
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
3 changes: 3 additions & 0 deletions project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
:gcov:
:reports:
- HtmlDetailed
- Cobertura
:gcovr:
:html_medium_threshold: 75
:html_high_threshold: 90
Expand Down Expand Up @@ -98,4 +99,6 @@
:enabled:
- stdout_pretty_tests_report
- module_generator
- gcov
- junit_tests_report
...
Loading