Try to fix docker exec #16
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: '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 |