diff options
| author | Philip Kuryloski <kuryloskip@vmware.com> | 2021-03-10 17:53:31 +0100 |
|---|---|---|
| committer | Philip Kuryloski <kuryloskip@vmware.com> | 2021-03-10 17:53:31 +0100 |
| commit | 024202da477b9639323175a78020514b17a325c3 (patch) | |
| tree | 2c96b7b99ab12fece15824e255f511576cbf9fc4 | |
| parent | cfa08a861dd34f3b017fdcfec2ea8fc51b4452f0 (diff) | |
| download | rabbitmq-server-git-024202da477b9639323175a78020514b17a325c3.tar.gz | |
WIP: GitHub Actions without docker images 29
| -rw-r--r-- | .github/workflows/test-erlang-otp-23.1.yaml | 5 | ||||
| -rw-r--r-- | .github/workflows/test-erlang-otp-git.yaml | 5 | ||||
| -rw-r--r-- | workflow_sources/deps.yml | 1 | ||||
| -rw-r--r-- | workflow_sources/test/rabbitmq_cli.lib.yml | 6 |
4 files changed, 14 insertions, 3 deletions
diff --git a/.github/workflows/test-erlang-otp-23.1.yaml b/.github/workflows/test-erlang-otp-23.1.yaml index f1797fb02d..8ea00b1579 100644 --- a/.github/workflows/test-erlang-otp-23.1.yaml +++ b/.github/workflows/test-erlang-otp-23.1.yaml @@ -11341,7 +11341,10 @@ jobs: - name: RUN TESTS if: steps.cache.outputs.cache-hit != 'true' run: | - make -C deps/rabbitmq_cli tests + function run_tests() { + make -C deps/rabbitmq_cli tests + } + run_tests || run_tests || run_tests - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT uses: actions/upload-artifact@v2-preview if: failure() diff --git a/.github/workflows/test-erlang-otp-git.yaml b/.github/workflows/test-erlang-otp-git.yaml index e19ec98c6c..2a59d0c847 100644 --- a/.github/workflows/test-erlang-otp-git.yaml +++ b/.github/workflows/test-erlang-otp-git.yaml @@ -5484,7 +5484,10 @@ jobs: - name: RUN TESTS if: steps.cache.outputs.cache-hit != 'true' run: | - make -C deps/rabbitmq_cli tests + function run_tests() { + make -C deps/rabbitmq_cli tests + } + run_tests || run_tests || run_tests - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT uses: actions/upload-artifact@v2-preview if: failure() diff --git a/workflow_sources/deps.yml b/workflow_sources/deps.yml index 97ec24831d..4f589f7adf 100644 --- a/workflow_sources/deps.yml +++ b/workflow_sources/deps.yml @@ -174,6 +174,7 @@ deps: - name: rabbitmq_cli skip_dialyzer: true + attempts: 3 suites: [] - name: rabbitmq_codegen diff --git a/workflow_sources/test/rabbitmq_cli.lib.yml b/workflow_sources/test/rabbitmq_cli.lib.yml index 755e68a14f..9308cbb277 100644 --- a/workflow_sources/test/rabbitmq_cli.lib.yml +++ b/workflow_sources/test/rabbitmq_cli.lib.yml @@ -41,8 +41,12 @@ steps: make -C deps/(@= dep.name @) tests MIX_TEST_OPTS="--exclude test" - name: RUN TESTS if: steps.cache.outputs.cache-hit != 'true' + #@ tests_cmd = " || ".join(["run_tests"] * getattr(dep, 'attempts', 1)) run: | - make -C deps/(@= dep.name @) tests + function run_tests() { + make -C deps/(@= dep.name @) tests + } + (@= tests_cmd @) - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT #! https://github.com/marketplace/actions/upload-artifact uses: actions/upload-artifact@v2-preview |
