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
15 changes: 9 additions & 6 deletions .github/workflows/tics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,22 @@ jobs:
working-directory: src
run: ./dev.sh layout Release linux-x64

# dev.sh installs its own SDK under _dotnetsdk/<version>; dotnet-coverage and TICS
# need DOTNET_ROOT to find it.
- name: Locate .NET SDK
run: |
DOTNET_DIR="$(dirname "$(ls "${GITHUB_WORKSPACE}"/_dotnetsdk/*/dotnet | head -n1)")"
echo "DOTNET_ROOT=${DOTNET_DIR}" >> "$GITHUB_ENV"
echo "${DOTNET_DIR}" >> "$GITHUB_PATH"
echo "${HOME}/.dotnet/tools" >> "$GITHUB_PATH"

- name: Run L0 tests with coverage
working-directory: src
run: |
# dev.sh installs its own SDK under _dotnetsdk/<version>
DOTNET_DIR="$(dirname "$(ls "${GITHUB_WORKSPACE}"/_dotnetsdk/*/dotnet | head -n1)")"
export PATH="${DOTNET_DIR}:${HOME}/.dotnet/tools:${PATH}"
dotnet tool update --global dotnet-coverage
dotnet-coverage collect --output-format cobertura \
--output "${GITHUB_WORKSPACE}/.coverage/cobertura.xml" "./dev.sh test"

- name: Locate .NET SDK
run: echo "DOTNET_ROOT=$(dirname "$(ls "${GITHUB_WORKSPACE}"/_dotnetsdk/*/dotnet | head -n1)")" >> "$GITHUB_ENV"

- name: TICS GitHub Action
uses: tiobe/tics-github-action@v3
with:
Expand Down
Loading