mirror of
https://github.com/ringtailsoftware/uvm32.git
synced 2026-06-05 22:43:39 +00:00
38 lines
991 B
YAML
38 lines
991 B
YAML
name: CI
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
test:
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest]
|
|
runs-on: ${{matrix.os}}
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
with:
|
|
path: uvm32
|
|
- name: Build
|
|
run: make dockerbuild && make docker
|
|
working-directory: uvm32
|
|
- name: Code Coverage Report
|
|
uses: irongut/CodeCoverageSummary@v1.3.0
|
|
with:
|
|
filename: uvm32/test/coverage.xml
|
|
badge: true
|
|
fail_below_min: false
|
|
format: markdown
|
|
hide_branch_rate: false
|
|
hide_complexity: true
|
|
indicators: true
|
|
output: both
|
|
thresholds: '60 80'
|
|
- name: Make Coverage Badge
|
|
uses: action-badges/cobertura-coverage-xml-badges@0.4.0
|
|
with:
|
|
file-name: coverage.svg
|
|
badge-branch: badges
|
|
github-token: '${{ secrets.GITHUB_TOKEN }}'
|
|
coverage-file-name: uvm32/test/coverage.xml
|
|
|