Skip to content

Bump AkkaHostingVersion from 1.5.30.1 to 1.5.31 #844

Bump AkkaHostingVersion from 1.5.30.1 to 1.5.31

Bump AkkaHostingVersion from 1.5.30.1 to 1.5.31 #844

Workflow file for this run

name: pr_validation
on:
push:
branches:
- master
- dev
- main
pull_request:
branches:
- master
- dev
- main
permissions:
checks: write
pull-requests: write
issues: write
contents: read
jobs:
test:
timeout-minutes: 20 # Increase this timeout value as needed
# Permissions this GitHub Action needs for other things in GitHub
name: Test-${{matrix.os}}
runs-on: ${{matrix.os}}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- name: "Checkout"
uses: actions/[email protected]
with:
lfs: true
fetch-depth: 0
- name: "Install .NET SDK"
uses: actions/[email protected]
with:
global-json-file: "./global.json"
- name: "Update release notes"
shell: pwsh
run: |
./build.ps1
- name: "dotnet build"
run: dotnet build -c Release
- name: "dotnet pack"
run: dotnet pack -c Release
- name: "dotnet test (Linux)"
if: runner.os == 'Linux'
run: dotnet test --configuration Release --verbosity normal --logger trx --collect:"XPlat Code Coverage"
- name: "dotnet test (Windows)"
if: runner.os == 'Windows'
run: dotnet test --configuration Release --verbosity normal --logger trx --collect:"XPlat Code Coverage" ./tests/TurboMqtt.Tests/TurboMqtt.Tests.csproj
- name: Combine Coverage Reports
if: runner.os == 'Linux'
uses: danielpalme/[email protected]
with:
reports: "**/*.cobertura.xml"
targetdir: "${{ github.workspace }}"
reporttypes: "Cobertura"
verbosity: "Info"
title: "Code Coverage"
tag: "${{ github.run_number }}_${{ github.run_id }}"
customSettings: ""
toolpath: "reportgeneratortool"
- name: Publish Code Coverage Report
if: runner.os == 'Linux'
uses: irongut/[email protected]
with:
filename: "Cobertura.xml"
badge: true
fail_below_min: false
format: markdown
hide_branch_rate: false
hide_complexity: false
indicators: true
output: both
thresholds: "10 30"
- name: Add Coverage PR Comment
if: github.event_name == 'pull_request_target' && runner.os == 'Linux'
uses: marocchino/sticky-pull-request-comment@v2
with:
recreate: true
path: code-coverage-results.md
- name: Upload Test Result Files
if: runner.os == 'Linux'
uses: actions/upload-artifact@v4
with:
name: test-results
path: ${{ github.workspace }}/**/TestResults/**/*
retention-days: 5
- name: Publish Test Results
if: always() && runner.os == 'Linux'
uses: EnricoMi/[email protected]
with:
trx_files: "${{ github.workspace }}/**/*.trx"