Skip to content

Commit

Permalink
Create CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
bothzoli committed Feb 13, 2025
1 parent 66e17e3 commit a7cbb20
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: libc.eventbus-ci

on: [push]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.x

- name: Install dependencies
run: dotnet restore

- name: Build solution
run: dotnet build --configuration Release --no-restore

- name: Run tests
run: dotnet test --configuration Release --no-restore --verbosity normal --logger "trx;logfilename=TestResults.trx" --collect:"XPlat Code Coverage" --results-directory TestResults

- name: Publish test results
uses: bibipkins/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
comment-title: 'Unit Test Results'
results-path: ./TestResults/*.trx
coverage-path: ./TestResults/**/coverage.cobertura.xml
coverage-type: cobertura

0 comments on commit a7cbb20

Please sign in to comment.