Se agrega controlador de LEDS con TDD #1
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
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 |