Skip to content

Add branding

Add branding #25

Workflow file for this run

name: 'test-action'
on:
pull_request:
push:
branches:
- master
jobs:
test-action:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Run Unit Tests and Generate Coverage
id: run-tests
uses: ./
with:
project: 'test/Test.Project'
threshold: 80 # Example: Set coverage threshold to 80%
dotnet-version: '8.0'
- name: Upload Coverage Report
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: ${{ steps.run-tests.outputs.coverage-report-path }} # Use the output from the previous step to upload the report
- name: Upload to codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ${{ steps.run-tests.outputs.coverage-report-path }}/*.cobertura.xml
flags: unittests
name: codecov-coverage
fail_ci_if_error: true