Skip to content
Merged
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
53 changes: 28 additions & 25 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,28 +36,31 @@ jobs:
working-directory: src
run: powershell .\Check.ps1

- name: Send to Coveralls
working-directory: src
env:
HEAD_REF: ${{ github.head_ref }}
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
run: |
# At the moment we only run coveralls on main.
# However, we leave this legacy logic here in case we introduce
# new branching policy or new coverage publishing rules.
if (${env:GITHUB_REF}.StartsWith("refs/pull/"))
{
$branch = ${env:HEAD_REF} -Replace 'refs/heads/', ''
}
else
{
$branch = ${env:GITHUB_REF} -Replace 'refs/heads/', ''
}

$commit = $env:GITHUB_SHA

echo "Branch is: $branch"
echo "Commit is: $commit"

dotnet tool run csmacnz.Coveralls --opencover -i AasCore.Aas3_1.Tests\coverage.opencover.xml --useRelativePaths --repoToken $env:COVERALLS_REPO_TOKEN --commitId $env:GITHUB_SHA --commitBranch $BRANCH
# NOTE (mristin, 2026-02-27):
# The coveralls.io seems to be down for a longer time, so we are disabling it
# for the moment.
# - name: Send to Coveralls
# working-directory: src
# env:
# HEAD_REF: ${{ github.head_ref }}
# COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
# if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
# run: |
# # At the moment we only run coveralls on main.
# # However, we leave this legacy logic here in case we introduce
# # new branching policy or new coverage publishing rules.
# if (${env:GITHUB_REF}.StartsWith("refs/pull/"))
# {
# $branch = ${env:HEAD_REF} -Replace 'refs/heads/', ''
# }
# else
# {
# $branch = ${env:GITHUB_REF} -Replace 'refs/heads/', ''
# }
#
# $commit = $env:GITHUB_SHA
#
# echo "Branch is: $branch"
# echo "Commit is: $commit"
#
# dotnet tool run csmacnz.Coveralls --opencover -i AasCore.Aas3_1.Tests\coverage.opencover.xml --useRelativePaths --repoToken $env:COVERALLS_REPO_TOKEN --commitId $env:GITHUB_SHA --commitBranch $BRANCH