Skip to content

test: fix connected components test #701

test: fix connected components test

test: fix connected components test #701

Workflow file for this run

name: Test Pipeline
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
unity-test:
name: Test with Unity Test Runner
permissions: write-all
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Fetch Main Branch
run: git fetch origin main:main
- uses: actions/cache@v4
with:
path: ./aplib.net-demo/Library
key: Library-${{ hashFiles('aplib.net-demo/Assets/**', 'aplib.net-demo/Packages/**', 'aplib.net-demo/ProjectSettings/**') }}
restore-keys: |
Library-${{ hashFiles('aplib.net-demo/Assets/**', 'aplib.net-demo/Packages/**', 'aplib.net-demo/ProjectSettings/**') }}
- uses: game-ci/unity-test-runner@v4
id: unity-test-step
env:
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
with:
projectPath: ./aplib.net-demo/
githubToken: ${{ secrets.GITHUB_TOKEN }}
coverageOptions: "generateAdditionalMetrics;generateHtmlReport;generateHtmlReportHistory;generateBadgeReport"
- uses: actions/upload-artifact@v4
if: always()
with:
name: Coverage results
path: ${{ steps.unity-test-step.outputs.coveragePath }}
- name: Collect Code Coverage with SonarCloud
uses: sonarsource/[email protected]
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
args: >
-Dsonar.organization=team-zomsa
-Dsonar.projectKey=team-zomsa_aplib.net-demo
-Dsonar.cs.opencover.reportsPaths=${{ steps.unity-test-step.outputs.coveragePath }}/aplib.net-demo-opencov/**/TestCoverageResults_*.xml