From 0562c094c017c3bc417bd72f01a47cb9ae7672e2 Mon Sep 17 00:00:00 2001 From: Uladzislau Date: Mon, 27 Jan 2025 15:32:28 +0100 Subject: [PATCH] GitHub actions fix Signed-off-by: Uladzislau --- .github/workflows/build.yml | 15 +++++++++++---- .github/workflows/release.yml | 6 ++++-- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7e55bc50..24abb5a9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,7 +18,7 @@ concurrency: jobs: build: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 strategy: matrix: product: ["IC-231","IC-233","IC-242","IC-243"] @@ -101,7 +101,7 @@ jobs: test_and_sonar: needs: [build] - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 strategy: matrix: product: ["IC-231","IC-233","IC-242","IC-243"] @@ -145,7 +145,7 @@ jobs: - name: Publish tests result to artifacts uses: actions/upload-artifact@v4 with: - name: tests-report-${{ matrix.product }} + name: tests-summary-success-report-${{ matrix.product }} path: ${{ github.workspace }}/build/reports/tests - name: Publish code coverage report to artifacts @@ -164,10 +164,17 @@ jobs: GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }} PRODUCT_NAME: ${{ matrix.product }} + - name: Save test failure report + if: failure() + uses: actions/upload-artifact@v4 + with: + name: tests-summary-failure-report-${{ matrix.product }} + path: ${{ github.workspace }}/build/reports/tests/test + verify: if: ${{ contains(github.ref, 'refs/heads/release/') || contains(github.ref, 'refs/heads/main') }} needs: [build] - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 strategy: matrix: product: ["IC-231","IC-233","IC-242","IC-243"] diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b60d104f..4dc843ea 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,7 +13,7 @@ on: jobs: changelog-and-preparations: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 permissions: contents: write pull-requests: write @@ -108,7 +108,9 @@ jobs: release: needs: [changelog-and-preparations] - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 + permissions: + contents: write strategy: matrix: product: ["IC-231","IC-233","IC-242","IC-243"]