From 8491729f1169feaa513ffe3a18c34ffddf41c513 Mon Sep 17 00:00:00 2001 From: Thijs Koppen Date: Fri, 8 Nov 2024 15:03:32 +0100 Subject: [PATCH] Set test workflow working directory --- .github/workflows/test.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 6d587c2..01bc600 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -6,6 +6,9 @@ jobs: test: name: Run tests and publish report to SonarQube runs-on: ubuntu-latest + defaults: + run: + working-directory: ./examples steps: - uses: actions/checkout@v4 with: @@ -14,7 +17,7 @@ jobs: with: distribution: 'temurin' java-version: '17' - - run: cd examples && chmod +x gradlew + - run: chmod +x gradlew - run: ./gradlew koverXmlReport --no-daemon --continue - env: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}