From 25884165b1230ad3942ac5c128e2c1363d286d30 Mon Sep 17 00:00:00 2001 From: Mathew Topper Date: Tue, 3 Dec 2024 16:20:55 +0000 Subject: [PATCH] Try to reduce sketchiness of workflows --- .github/workflows/release.yml | 6 ++++-- .github/workflows/unit-tests.yml | 12 +++++++++--- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4153e7f..a479b54 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -43,11 +43,13 @@ jobs: - name: Action | Get release commit sha id: sha run: echo "SHA=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT - - run: echo ${{ steps.sha.outputs.SHA }} + - run: | + echo "released: ${{ steps.release.outputs.released }}" + echo "sha: ${{ steps.sha.outputs.SHA }}" package: needs: [release] - if: needs.release.outputs.released + if: needs.release.outputs.released == 'true' strategy: fail-fast: false matrix: diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index a963554..b61361b 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -61,7 +61,10 @@ jobs: fluxbox > /dev/null 2>&1 & sleep 5 - name: Test - run: ./bin/tests + uses: Wandalen/wretry.action@master + with: + command: ./bin/tests + attempt_limit: 3 env: ESPEAK_DATA_PATH: ./vendor/src/espeak-ng/espeak-ng-data coverage: @@ -104,8 +107,11 @@ jobs: fluxbox > /dev/null 2>&1 & sleep 5 - name: Build XML report - run: poetry run cmake --build . --config Debug -t coverage-xml - working-directory: build + uses: Wandalen/wretry.action@master + with: + command: poetry run cmake --build . --config Debug -t coverage-xml + attempt_limit: 3 + current_path: build - uses: codecov/codecov-action@v4 if: ${{ !env.ACT }} with: