From 0a32fac7dac8bdf7101421a05c56236a1b52d217 Mon Sep 17 00:00:00 2001 From: David Schneider Date: Tue, 13 Feb 2024 10:00:26 +0100 Subject: [PATCH 1/2] Upload action logs in case of failure --- .github/workflows/heat_transfer_ci.yml | 8 ++++++++ .github/workflows/solid_mechanics_ci.yml | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/.github/workflows/heat_transfer_ci.yml b/.github/workflows/heat_transfer_ci.yml index f828062..76248b9 100644 --- a/.github/workflows/heat_transfer_ci.yml +++ b/.github/workflows/heat_transfer_ci.yml @@ -35,3 +35,11 @@ jobs: docker pull precice/precice:develop docker build -t dealii-precice:develop -f ./utilities/Dockerfile . docker run -t dealii-precice:develop /bin/sh -c "$command"; + - uses: actions/upload-artifact@v4 + if: failure() + with: + name: test-logs + path: | + tests/heat/**/*.log + tests/heat/**/*.output + tests/heat/**/*.diff diff --git a/.github/workflows/solid_mechanics_ci.yml b/.github/workflows/solid_mechanics_ci.yml index d4ddd67..385ea1f 100644 --- a/.github/workflows/solid_mechanics_ci.yml +++ b/.github/workflows/solid_mechanics_ci.yml @@ -35,3 +35,11 @@ jobs: docker pull precice/precice:develop docker build -t dealii-precice:develop -f ./utilities/Dockerfile . docker run -t dealii-precice:develop /bin/sh -c "$command"; + - uses: actions/upload-artifact@v4 + if: failure() + with: + name: test-logs + path: | + tests/heat/**/*.log + tests/heat/**/*.output + tests/heat/**/*.diff From 859474fa076d2020e0273a21c0e3ab4f6645b5cc Mon Sep 17 00:00:00 2001 From: David Schneider Date: Tue, 13 Feb 2024 10:55:05 +0100 Subject: [PATCH 2/2] Set timeout minutes to build step --- .github/workflows/heat_transfer_ci.yml | 1 + .github/workflows/solid_mechanics_ci.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/heat_transfer_ci.yml b/.github/workflows/heat_transfer_ci.yml index 76248b9..04e5ed0 100644 --- a/.github/workflows/heat_transfer_ci.yml +++ b/.github/workflows/heat_transfer_ci.yml @@ -17,6 +17,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: run test + timeout-minutes: 20 run: | command="sudo apt-get -y update && \ diff --git a/.github/workflows/solid_mechanics_ci.yml b/.github/workflows/solid_mechanics_ci.yml index 385ea1f..f994537 100644 --- a/.github/workflows/solid_mechanics_ci.yml +++ b/.github/workflows/solid_mechanics_ci.yml @@ -17,6 +17,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: run test + timeout-minutes: 30 run: | command="sudo apt-get -y update && \