From ca6e37263d0a1d1c075f9ea6a0ae6113801404a5 Mon Sep 17 00:00:00 2001 From: carlosthe19916 <2582866+carlosthe19916@users.noreply.github.com> Date: Fri, 9 Jun 2023 10:23:02 +0200 Subject: [PATCH 01/20] Daily test of cli image --- .github/workflows/cli.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/cli.yml diff --git a/.github/workflows/cli.yml b/.github/workflows/cli.yml new file mode 100644 index 0000000..a5cf777 --- /dev/null +++ b/.github/workflows/cli.yml @@ -0,0 +1,20 @@ +name: Snapshots + +on: + schedule: + - cron: '0 0 * * *' + workflow_dispatch: + inputs: { } + +jobs: + tests: + name: Test + strategy: + fail-fast: false + matrix: + container-runtime: [ docker, podman ] + os: [ ubuntu-latest, windows-latest, macos-latest ] + runs-on: ${{ matrix.os }} + steps: + - name: Maven + run: ${{ matrix.os }} version From 4bc5731d050c7801951f8e926e753e54c8c0fcd2 Mon Sep 17 00:00:00 2001 From: carlosthe19916 <2582866+carlosthe19916@users.noreply.github.com> Date: Fri, 9 Jun 2023 10:25:56 +0200 Subject: [PATCH 02/20] Daily test of cli image --- .github/workflows/cli.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cli.yml b/.github/workflows/cli.yml index a5cf777..e17d278 100644 --- a/.github/workflows/cli.yml +++ b/.github/workflows/cli.yml @@ -12,9 +12,9 @@ jobs: strategy: fail-fast: false matrix: - container-runtime: [ docker, podman ] + runtime: [ docker, podman ] os: [ ubuntu-latest, windows-latest, macos-latest ] runs-on: ${{ matrix.os }} steps: - name: Maven - run: ${{ matrix.os }} version + run: ${{ matrix.runtime }} version From 7d8ac4770e9c67fe1d421560c18f437ad6d39bb3 Mon Sep 17 00:00:00 2001 From: carlosthe19916 <2582866+carlosthe19916@users.noreply.github.com> Date: Fri, 9 Jun 2023 10:35:35 +0200 Subject: [PATCH 03/20] Daily test of cli image --- .github/workflows/cli.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cli.yml b/.github/workflows/cli.yml index e17d278..8012561 100644 --- a/.github/workflows/cli.yml +++ b/.github/workflows/cli.yml @@ -12,9 +12,17 @@ jobs: strategy: fail-fast: false matrix: - runtime: [ docker, podman ] os: [ ubuntu-latest, windows-latest, macos-latest ] + runtime: [ docker, podman ] runs-on: ${{ matrix.os }} steps: + - name: Setup docker (missing on MacOS) + if: ${{ matrix.os == 'macos-latest' && matrix.runtime == 'docker' }} + run: | + brew install docker + - name: Setup podman (missing on MacOS) + if: ${{ matrix.os == 'macos-latest' && matrix.runtime == 'docker' }} + run: | + brew install podman - name: Maven run: ${{ matrix.runtime }} version From a591f241fe5123469b314ed9589011f383e459c6 Mon Sep 17 00:00:00 2001 From: carlosthe19916 <2582866+carlosthe19916@users.noreply.github.com> Date: Fri, 9 Jun 2023 10:39:06 +0200 Subject: [PATCH 04/20] test --- .github/workflows/cli.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cli.yml b/.github/workflows/cli.yml index 8012561..7764086 100644 --- a/.github/workflows/cli.yml +++ b/.github/workflows/cli.yml @@ -21,7 +21,7 @@ jobs: run: | brew install docker - name: Setup podman (missing on MacOS) - if: ${{ matrix.os == 'macos-latest' && matrix.runtime == 'docker' }} + if: ${{ matrix.os == 'macos-latest' && matrix.runtime == 'podman' }} run: | brew install podman - name: Maven From a368b1350c288a20d90eb6438498fbae4e64265a Mon Sep 17 00:00:00 2001 From: carlosthe19916 <2582866+carlosthe19916@users.noreply.github.com> Date: Fri, 9 Jun 2023 10:40:50 +0200 Subject: [PATCH 05/20] test --- .github/workflows/cli.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/cli.yml b/.github/workflows/cli.yml index 7764086..a9b8f7e 100644 --- a/.github/workflows/cli.yml +++ b/.github/workflows/cli.yml @@ -20,9 +20,12 @@ jobs: if: ${{ matrix.os == 'macos-latest' && matrix.runtime == 'docker' }} run: | brew install docker + colima start - name: Setup podman (missing on MacOS) if: ${{ matrix.os == 'macos-latest' && matrix.runtime == 'podman' }} run: | brew install podman + podman machine init + podman machine start - name: Maven run: ${{ matrix.runtime }} version From 39317808db574fed3cad3950d2170d4c61ec9e47 Mon Sep 17 00:00:00 2001 From: carlosthe19916 <2582866+carlosthe19916@users.noreply.github.com> Date: Fri, 9 Jun 2023 10:49:10 +0200 Subject: [PATCH 06/20] use actions --- .github/workflows/cli.yml | 37 ++++++++++++++++++++++++++----------- 1 file changed, 26 insertions(+), 11 deletions(-) diff --git a/.github/workflows/cli.yml b/.github/workflows/cli.yml index a9b8f7e..ef5d510 100644 --- a/.github/workflows/cli.yml +++ b/.github/workflows/cli.yml @@ -16,16 +16,31 @@ jobs: runtime: [ docker, podman ] runs-on: ${{ matrix.os }} steps: - - name: Setup docker (missing on MacOS) - if: ${{ matrix.os == 'macos-latest' && matrix.runtime == 'docker' }} - run: | - brew install docker - colima start - - name: Setup podman (missing on MacOS) - if: ${{ matrix.os == 'macos-latest' && matrix.runtime == 'podman' }} - run: | - brew install podman - podman machine init - podman machine start + - name: Login to ghcr.io (Docker) + if: ${{ matrix.runtime == 'docker' }} + uses: docker/login-action@v2 + with: + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + registry: ghcr.io + - name: Log in to ghcr.io (Podman) + if: ${{ matrix.runtime == 'podman' }} + uses: redhat-actions/podman-login@v1 + with: + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + registry: ghcr.io + +# - name: Setup docker (missing on MacOS) +# if: ${{ matrix.os == 'macos-latest' && matrix.runtime == 'docker' }} +# run: | +# brew install docker +# colima start +# - name: Setup podman (missing on MacOS) +# if: ${{ matrix.os == 'macos-latest' && matrix.runtime == 'podman' }} +# run: | +# brew install podman +# podman machine init +# podman machine start - name: Maven run: ${{ matrix.runtime }} version From 2f7cf1ff4044112b3022840f31846f2a18cc3ea7 Mon Sep 17 00:00:00 2001 From: carlosthe19916 <2582866+carlosthe19916@users.noreply.github.com> Date: Fri, 9 Jun 2023 10:59:06 +0200 Subject: [PATCH 07/20] use actions --- .github/workflows/cli.yml | 49 +++++++++++++++++---------------------- 1 file changed, 21 insertions(+), 28 deletions(-) diff --git a/.github/workflows/cli.yml b/.github/workflows/cli.yml index ef5d510..d75541e 100644 --- a/.github/workflows/cli.yml +++ b/.github/workflows/cli.yml @@ -16,31 +16,24 @@ jobs: runtime: [ docker, podman ] runs-on: ${{ matrix.os }} steps: - - name: Login to ghcr.io (Docker) - if: ${{ matrix.runtime == 'docker' }} - uses: docker/login-action@v2 - with: - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - registry: ghcr.io - - name: Log in to ghcr.io (Podman) - if: ${{ matrix.runtime == 'podman' }} - uses: redhat-actions/podman-login@v1 - with: - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - registry: ghcr.io - -# - name: Setup docker (missing on MacOS) -# if: ${{ matrix.os == 'macos-latest' && matrix.runtime == 'docker' }} -# run: | -# brew install docker -# colima start -# - name: Setup podman (missing on MacOS) -# if: ${{ matrix.os == 'macos-latest' && matrix.runtime == 'podman' }} -# run: | -# brew install podman -# podman machine init -# podman machine start - - name: Maven - run: ${{ matrix.runtime }} version + - name: Setup docker (missing on MacOS) + if: ${{ matrix.os == 'macos-latest' && matrix.runtime == 'docker' }} + run: | + brew install docker + colima start + - name: Setup podman (missing on MacOS) + if: ${{ matrix.os == 'macos-latest' && matrix.runtime == 'podman' }} + run: | + brew install podman + podman machine init --now + - name: Setup podman (missing on Windows) + if: ${{ matrix.os == 'window-latest' && matrix.runtime == 'podman' }} + run: | + brew install podman + podman machine init --now + - name: Container runtime info + run: | + ${{ matrix.runtime }} version + - name: Container test + run: | + ${{ matrix.runtime }} run quay.io/podman/hello \ No newline at end of file From b8bc111246d971b507c0e0a6f123d63c0a4618af Mon Sep 17 00:00:00 2001 From: carlosthe19916 <2582866+carlosthe19916@users.noreply.github.com> Date: Fri, 9 Jun 2023 11:02:24 +0200 Subject: [PATCH 08/20] use actions --- .github/workflows/cli.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cli.yml b/.github/workflows/cli.yml index d75541e..a0dcdb9 100644 --- a/.github/workflows/cli.yml +++ b/.github/workflows/cli.yml @@ -27,7 +27,7 @@ jobs: brew install podman podman machine init --now - name: Setup podman (missing on Windows) - if: ${{ matrix.os == 'window-latest' && matrix.runtime == 'podman' }} + if: ${{ matrix.os == 'windows-latest' && matrix.runtime == 'podman' }} run: | brew install podman podman machine init --now From 2d9d5e7fb2b5756c86914070d29882f7a1c8e30a Mon Sep 17 00:00:00 2001 From: carlosthe19916 <2582866+carlosthe19916@users.noreply.github.com> Date: Fri, 9 Jun 2023 11:54:06 +0200 Subject: [PATCH 09/20] use actions --- .github/workflows/cli.yml | 38 +++++++++++++++++++++++--------------- 1 file changed, 23 insertions(+), 15 deletions(-) diff --git a/.github/workflows/cli.yml b/.github/workflows/cli.yml index a0dcdb9..673193e 100644 --- a/.github/workflows/cli.yml +++ b/.github/workflows/cli.yml @@ -13,7 +13,7 @@ jobs: fail-fast: false matrix: os: [ ubuntu-latest, windows-latest, macos-latest ] - runtime: [ docker, podman ] + runtime: [ docker ] runs-on: ${{ matrix.os }} steps: - name: Setup docker (missing on MacOS) @@ -21,19 +21,27 @@ jobs: run: | brew install docker colima start - - name: Setup podman (missing on MacOS) - if: ${{ matrix.os == 'macos-latest' && matrix.runtime == 'podman' }} - run: | - brew install podman - podman machine init --now - - name: Setup podman (missing on Windows) - if: ${{ matrix.os == 'windows-latest' && matrix.runtime == 'podman' }} - run: | - brew install podman - podman machine init --now +# - name: Setup podman (missing on MacOS) +# if: ${{ matrix.os == 'macos-latest' && matrix.runtime == 'podman' }} +# run: | +# brew install podman +# podman machine init --now +# - name: Setup podman (missing on Windows) +# if: ${{ matrix.os == 'windows-latest' && matrix.runtime == 'podman' }} +# run: | +# brew install podman +# podman machine init --now - name: Container runtime info run: | - ${{ matrix.runtime }} version - - name: Container test - run: | - ${{ matrix.runtime }} run quay.io/podman/hello \ No newline at end of file + ${{ matrix.runtime }} run --name windup-cli --pull newer \ + quay.io/windupeng/windup-cli-openshift:latest + --input /opt/migrationtoolkit/samples/jee-example-app-1.0.0.ear \ + --output /opt/migrationtoolkit/samples/jee-example-app-1.0.0.ear.report \ + --target discovery \ + --exportZipReport + + # Extract report + ${{ matrix.runtime }} cp windup-cli:/opt/migrationtoolkit/samples/jee-example-app-1.0.0.ear.report/reports.zip . + + # + unzip reports.zip -d reports \ No newline at end of file From 87383b19684dfaab099b01f5d12625f8cb729803 Mon Sep 17 00:00:00 2001 From: carlosthe19916 <2582866+carlosthe19916@users.noreply.github.com> Date: Fri, 9 Jun 2023 11:56:33 +0200 Subject: [PATCH 10/20] use actions --- .github/workflows/cli.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cli.yml b/.github/workflows/cli.yml index 673193e..e0e9977 100644 --- a/.github/workflows/cli.yml +++ b/.github/workflows/cli.yml @@ -34,7 +34,7 @@ jobs: - name: Container runtime info run: | ${{ matrix.runtime }} run --name windup-cli --pull newer \ - quay.io/windupeng/windup-cli-openshift:latest + quay.io/windupeng/windup-cli-openshift:latest \ --input /opt/migrationtoolkit/samples/jee-example-app-1.0.0.ear \ --output /opt/migrationtoolkit/samples/jee-example-app-1.0.0.ear.report \ --target discovery \ From 92995f3ffb73aaa74880d74d041c658cc41b729f Mon Sep 17 00:00:00 2001 From: carlosthe19916 <2582866+carlosthe19916@users.noreply.github.com> Date: Fri, 9 Jun 2023 12:36:36 +0200 Subject: [PATCH 11/20] use actions --- .github/workflows/cli.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cli.yml b/.github/workflows/cli.yml index e0e9977..b4ac8b6 100644 --- a/.github/workflows/cli.yml +++ b/.github/workflows/cli.yml @@ -33,7 +33,7 @@ jobs: # podman machine init --now - name: Container runtime info run: | - ${{ matrix.runtime }} run --name windup-cli --pull newer \ + ${{ matrix.runtime }} run --name windup-cli --pull always \ quay.io/windupeng/windup-cli-openshift:latest \ --input /opt/migrationtoolkit/samples/jee-example-app-1.0.0.ear \ --output /opt/migrationtoolkit/samples/jee-example-app-1.0.0.ear.report \ From 839d58dfd296181f39309da4672d2a2ec82a72c4 Mon Sep 17 00:00:00 2001 From: carlosthe19916 <2582866+carlosthe19916@users.noreply.github.com> Date: Fri, 9 Jun 2023 12:57:31 +0200 Subject: [PATCH 12/20] use actions --- .github/workflows/cli.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/cli.yml b/.github/workflows/cli.yml index b4ac8b6..decaae7 100644 --- a/.github/workflows/cli.yml +++ b/.github/workflows/cli.yml @@ -33,12 +33,7 @@ jobs: # podman machine init --now - name: Container runtime info run: | - ${{ matrix.runtime }} run --name windup-cli --pull always \ - quay.io/windupeng/windup-cli-openshift:latest \ - --input /opt/migrationtoolkit/samples/jee-example-app-1.0.0.ear \ - --output /opt/migrationtoolkit/samples/jee-example-app-1.0.0.ear.report \ - --target discovery \ - --exportZipReport + ${{ matrix.runtime }} run --name windup-cli --pull always quay.io/windupeng/windup-cli-openshift:latest --input /opt/migrationtoolkit/samples/jee-example-app-1.0.0.ear --output /opt/migrationtoolkit/samples/jee-example-app-1.0.0.ear.report --target discovery --exportZipReport # Extract report ${{ matrix.runtime }} cp windup-cli:/opt/migrationtoolkit/samples/jee-example-app-1.0.0.ear.report/reports.zip . From 654dba77a40674f6e76a90c5dad61a95035ba26d Mon Sep 17 00:00:00 2001 From: carlosthe19916 <2582866+carlosthe19916@users.noreply.github.com> Date: Fri, 9 Jun 2023 12:59:57 +0200 Subject: [PATCH 13/20] use actions --- .github/workflows/cli.yml | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/.github/workflows/cli.yml b/.github/workflows/cli.yml index decaae7..a5277e0 100644 --- a/.github/workflows/cli.yml +++ b/.github/workflows/cli.yml @@ -1,4 +1,4 @@ -name: Snapshots +name: CLI Container image check on: schedule: @@ -21,16 +21,7 @@ jobs: run: | brew install docker colima start -# - name: Setup podman (missing on MacOS) -# if: ${{ matrix.os == 'macos-latest' && matrix.runtime == 'podman' }} -# run: | -# brew install podman -# podman machine init --now -# - name: Setup podman (missing on Windows) -# if: ${{ matrix.os == 'windows-latest' && matrix.runtime == 'podman' }} -# run: | -# brew install podman -# podman machine init --now + - name: Container runtime info run: | ${{ matrix.runtime }} run --name windup-cli --pull always quay.io/windupeng/windup-cli-openshift:latest --input /opt/migrationtoolkit/samples/jee-example-app-1.0.0.ear --output /opt/migrationtoolkit/samples/jee-example-app-1.0.0.ear.report --target discovery --exportZipReport From 474b88ba886729dfc06af5113c123080acba915b Mon Sep 17 00:00:00 2001 From: carlosthe19916 <2582866+carlosthe19916@users.noreply.github.com> Date: Fri, 9 Jun 2023 13:12:22 +0200 Subject: [PATCH 14/20] use actions --- .github/workflows/cli.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cli.yml b/.github/workflows/cli.yml index a5277e0..7396508 100644 --- a/.github/workflows/cli.yml +++ b/.github/workflows/cli.yml @@ -13,7 +13,7 @@ jobs: fail-fast: false matrix: os: [ ubuntu-latest, windows-latest, macos-latest ] - runtime: [ docker ] + runtime: [ docker, podman ] runs-on: ${{ matrix.os }} steps: - name: Setup docker (missing on MacOS) @@ -21,6 +21,12 @@ jobs: run: | brew install docker colima start + - name: Setup podman (missing on MacOS) + if: ${{ matrix.os == 'macos-latest' && matrix.runtime == 'podman' }} + run: | + brew install podman + podman machine start + podman machine init --now - name: Container runtime info run: | From a566980fd7914ce0f56d35ef358934dc6aa68a48 Mon Sep 17 00:00:00 2001 From: carlosthe19916 <2582866+carlosthe19916@users.noreply.github.com> Date: Fri, 9 Jun 2023 13:18:17 +0200 Subject: [PATCH 15/20] use actions --- .github/workflows/cli.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cli.yml b/.github/workflows/cli.yml index 7396508..cbd66ef 100644 --- a/.github/workflows/cli.yml +++ b/.github/workflows/cli.yml @@ -12,7 +12,7 @@ jobs: strategy: fail-fast: false matrix: - os: [ ubuntu-latest, windows-latest, macos-latest ] + os: [ ubuntu-latest, macos-latest ] runtime: [ docker, podman ] runs-on: ${{ matrix.os }} steps: @@ -25,8 +25,8 @@ jobs: if: ${{ matrix.os == 'macos-latest' && matrix.runtime == 'podman' }} run: | brew install podman + podman machine init podman machine start - podman machine init --now - name: Container runtime info run: | From 341ef49f65bee879a629a5835ccd12ddc72ac1f3 Mon Sep 17 00:00:00 2001 From: carlosthe19916 <2582866+carlosthe19916@users.noreply.github.com> Date: Fri, 9 Jun 2023 13:32:28 +0200 Subject: [PATCH 16/20] Add verify step --- .github/workflows/cli.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cli.yml b/.github/workflows/cli.yml index cbd66ef..da2e02b 100644 --- a/.github/workflows/cli.yml +++ b/.github/workflows/cli.yml @@ -28,12 +28,21 @@ jobs: podman machine init podman machine start - - name: Container runtime info + - name: Windup analysis run: | ${{ matrix.runtime }} run --name windup-cli --pull always quay.io/windupeng/windup-cli-openshift:latest --input /opt/migrationtoolkit/samples/jee-example-app-1.0.0.ear --output /opt/migrationtoolkit/samples/jee-example-app-1.0.0.ear.report --target discovery --exportZipReport # Extract report ${{ matrix.runtime }} cp windup-cli:/opt/migrationtoolkit/samples/jee-example-app-1.0.0.ear.report/reports.zip . - # - unzip reports.zip -d reports \ No newline at end of file + # Extract reports + unzip reports.zip -d reports + - name: Verify reports + run: | + if [ -e reports/index.html ] + then + echo "index.html exists" + else + echo "could not find index.html" + exit 1 + fi From d1fd016d92ecba227fa00952148142b102ad7269 Mon Sep 17 00:00:00 2001 From: carlosthe19916 <2582866+carlosthe19916@users.noreply.github.com> Date: Fri, 9 Jun 2023 13:40:00 +0200 Subject: [PATCH 17/20] Test exit code --- .github/workflows/cli.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cli.yml b/.github/workflows/cli.yml index da2e02b..d919865 100644 --- a/.github/workflows/cli.yml +++ b/.github/workflows/cli.yml @@ -16,6 +16,7 @@ jobs: runtime: [ docker, podman ] runs-on: ${{ matrix.os }} steps: + - run: exit 1 - name: Setup docker (missing on MacOS) if: ${{ matrix.os == 'macos-latest' && matrix.runtime == 'docker' }} run: | @@ -38,7 +39,7 @@ jobs: # Extract reports unzip reports.zip -d reports - name: Verify reports - run: | + run: | if [ -e reports/index.html ] then echo "index.html exists" From 57bf24c2a973ba1d70f721cbb8ece9b3b29ddbef Mon Sep 17 00:00:00 2001 From: carlosthe19916 <2582866+carlosthe19916@users.noreply.github.com> Date: Fri, 9 Jun 2023 13:43:04 +0200 Subject: [PATCH 18/20] Final code --- .../{cli.yml => windup_cli_openshift_cron.yml} | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) rename .github/workflows/{cli.yml => windup_cli_openshift_cron.yml} (90%) diff --git a/.github/workflows/cli.yml b/.github/workflows/windup_cli_openshift_cron.yml similarity index 90% rename from .github/workflows/cli.yml rename to .github/workflows/windup_cli_openshift_cron.yml index d919865..ef3fede 100644 --- a/.github/workflows/cli.yml +++ b/.github/workflows/windup_cli_openshift_cron.yml @@ -1,4 +1,4 @@ -name: CLI Container image check +name: Windup CLI Container Cron Check on: schedule: @@ -16,7 +16,6 @@ jobs: runtime: [ docker, podman ] runs-on: ${{ matrix.os }} steps: - - run: exit 1 - name: Setup docker (missing on MacOS) if: ${{ matrix.os == 'macos-latest' && matrix.runtime == 'docker' }} run: | @@ -31,15 +30,16 @@ jobs: - name: Windup analysis run: | + # Execute analysis ${{ matrix.runtime }} run --name windup-cli --pull always quay.io/windupeng/windup-cli-openshift:latest --input /opt/migrationtoolkit/samples/jee-example-app-1.0.0.ear --output /opt/migrationtoolkit/samples/jee-example-app-1.0.0.ear.report --target discovery --exportZipReport - # Extract report + # Extract report from container ${{ matrix.runtime }} cp windup-cli:/opt/migrationtoolkit/samples/jee-example-app-1.0.0.ear.report/reports.zip . - # Extract reports + # Unzip reports unzip reports.zip -d reports - name: Verify reports - run: | + run: | if [ -e reports/index.html ] then echo "index.html exists" From 9ddf163820b16443dc40c92af74cae6f08f3cad6 Mon Sep 17 00:00:00 2001 From: carlosthe19916 <2582866+carlosthe19916@users.noreply.github.com> Date: Fri, 9 Jun 2023 16:03:52 +0200 Subject: [PATCH 19/20] Check architecture --- .github/workflows/windup_cli_openshift_cron.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/windup_cli_openshift_cron.yml b/.github/workflows/windup_cli_openshift_cron.yml index ef3fede..5d7eaba 100644 --- a/.github/workflows/windup_cli_openshift_cron.yml +++ b/.github/workflows/windup_cli_openshift_cron.yml @@ -16,6 +16,9 @@ jobs: runtime: [ docker, podman ] runs-on: ${{ matrix.os }} steps: + - run: uname -m + - run: uname -p + - run: uname -m - name: Setup docker (missing on MacOS) if: ${{ matrix.os == 'macos-latest' && matrix.runtime == 'docker' }} run: | From 0e0e31441e9e1e82cb37bd8ea7ef4f2a40d8e374 Mon Sep 17 00:00:00 2001 From: carlosthe19916 <2582866+carlosthe19916@users.noreply.github.com> Date: Fri, 9 Jun 2023 16:06:02 +0200 Subject: [PATCH 20/20] Remove unused command --- .github/workflows/windup_cli_openshift_cron.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/windup_cli_openshift_cron.yml b/.github/workflows/windup_cli_openshift_cron.yml index 5d7eaba..ef3fede 100644 --- a/.github/workflows/windup_cli_openshift_cron.yml +++ b/.github/workflows/windup_cli_openshift_cron.yml @@ -16,9 +16,6 @@ jobs: runtime: [ docker, podman ] runs-on: ${{ matrix.os }} steps: - - run: uname -m - - run: uname -p - - run: uname -m - name: Setup docker (missing on MacOS) if: ${{ matrix.os == 'macos-latest' && matrix.runtime == 'docker' }} run: |