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 14, 2025
1 parent 66e17e3 commit f998e5f
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: libc.eventbus-ci

on: [push]

jobs:
build:
name: Build and run tests
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 f998e5f

Please sign in to comment.