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

Add dotnet tests and publish test results #12

Merged
merged 2 commits into from
Oct 13, 2023
Merged
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
20 changes: 18 additions & 2 deletions .github/workflows/codacy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,24 @@ jobs:
checks: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Run dotnet tests
run: |
# Run your tests here
dotnet test ./src --collect:"XPlat Code Coverage" --logger:"trx;LogFilePrefix=testResults;verbosity=detailed" --results-directory ./test-results
mv -v ./test-results/*/*.* ./test-results/
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action/composite@v2
id: test-results
if: always()
with:
files: |
test-results/**/*.trx
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Upload coverage reports to Codacy
run: |
bash <(curl -Ls https://coverage.codacy.com/get.sh)
bash <(curl -Ls https://coverage.codacy.com/get.sh) report -r ./test-results/coverage.cobertura.xml
env:
CODECOV_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

![GitHub issues](https://img.shields.io/github/issues/merca/data-and-stuff)
![GitHub pull requests](https://img.shields.io/github/issues-pr/merca/data-and-stuff)
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/64f70747a98f4a36bc5cbe5ff7fde4ad)](https://app.codacy.com/gh/merca/data-and-stuff/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)

</div>

Expand All @@ -35,17 +36,14 @@

## 🧐 About


In this repository, you'll find the relics of my expeditions into the uncharted territories of data engineering, architecture, analysis, and science.


## 🏁 Getting Started

To embark upon this quest, ensure your steed (your machine) is equipped with the necessary armaments.

### Prerequisites


Infrastructure is written with Pulumi, so you'll need to install it.

```powershell
Expand Down
Loading