From d97abe7b95ac6501943400b485e40b5a57bafcc4 Mon Sep 17 00:00:00 2001 From: Mark Brophy <36955467+m-brophy@users.noreply.github.com> Date: Fri, 19 Nov 2021 16:11:11 +0000 Subject: [PATCH 01/22] Create cli_script_check.yml to check mta-cl start scripts in both windows and linux --- .github/workflows/cli_script_check.yml | 66 ++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 .github/workflows/cli_script_check.yml diff --git a/.github/workflows/cli_script_check.yml b/.github/workflows/cli_script_check.yml new file mode 100644 index 0000000..26a37ac --- /dev/null +++ b/.github/workflows/cli_script_check.yml @@ -0,0 +1,66 @@ +# Workflow to build and check cli_scripts in Linux and Windows + +name: CI + +# Controls when the workflow will run +on: + # Triggers the workflow on push or pull request events but only for the master branch + push: + branches: [ master ] + pull_request: + branches: [ master ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # "build" job + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2.3.4 + - name: Set up JDK 11 + uses: actions/setup-java@v2 + with: + java-version: '11' + distribution: 'adopt' + java-package: jdk + - name: Cache Maven packages + uses: actions/cache@v2.1.6 + with: + path: ~/.m2 + key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} + restore-keys: ${{ runner.os }}-m2 + - name: Build on JDK 11 + run: mvn -B clean install + + # "linux-script-check" job + linux-script-check: + + runs-on: ubuntu-latest + + steps: + + - uses: actions/checkout@v2 + + - name: Run a multi-line script + run: | + echo Add other actions to build, + echo test, and deploy your project. + + # "windows-script-check" job + windows-script-check: + + runs-on: windows-latest + + steps: + + - uses: actions/checkout@v2 + + - name: Run a multi-line script + run: | + echo Add other actions to build, + echo test, and deploy your project. From 287c46823113786d480a77c95eb87e56c24703e9 Mon Sep 17 00:00:00 2001 From: Mark Brophy <36955467+m-brophy@users.noreply.github.com> Date: Mon, 22 Nov 2021 13:57:39 +0000 Subject: [PATCH 02/22] Update cli_script_check.yml --- .github/workflows/cli_script_check.yml | 52 +++++++++++++++++++++++++- 1 file changed, 50 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cli_script_check.yml b/.github/workflows/cli_script_check.yml index 26a37ac..d9ae488 100644 --- a/.github/workflows/cli_script_check.yml +++ b/.github/workflows/cli_script_check.yml @@ -15,8 +15,56 @@ on: # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: - # "build" job - build: + # build_windup job + build_windup: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2.3.4 + with: + repository: github/windup + - name: Set up JDK 11 + uses: actions/setup-java@v2 + with: + java-version: '11' + distribution: 'adopt' + java-package: jdk + - name: Cache Maven packages + uses: actions/cache@v2.1.6 + with: + path: ~/.m2 + key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} + restore-keys: ${{ runner.os }}-m2 + - name: Build on JDK 11 skipping tests + run: mvn -B clean install -DskipTests + + # build_windup_rulesets job + build_windup_rulesets: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2.3.4 + with: + repository: github/windup-rulesets + - name: Set up JDK 11 + uses: actions/setup-java@v2 + with: + java-version: '11' + distribution: 'adopt' + java-package: jdk + - name: Cache Maven packages + uses: actions/cache@v2.1.6 + with: + path: ~/.m2 + key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} + restore-keys: ${{ runner.os }}-m2 + - name: Build on JDK 11 + run: mvn -B clean install -DskipTests + + # build_cli job + build_cli: # The type of runner that the job will run on runs-on: ubuntu-latest From 79a56c9cbe7a9d59d809697289ee76eca6387b6b Mon Sep 17 00:00:00 2001 From: Mark Brophy <36955467+m-brophy@users.noreply.github.com> Date: Mon, 22 Nov 2021 14:06:31 +0000 Subject: [PATCH 03/22] Update cli_script_check.yml --- .github/workflows/cli_script_check.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cli_script_check.yml b/.github/workflows/cli_script_check.yml index d9ae488..c87c42b 100644 --- a/.github/workflows/cli_script_check.yml +++ b/.github/workflows/cli_script_check.yml @@ -23,7 +23,8 @@ jobs: steps: - uses: actions/checkout@v2.3.4 with: - repository: github/windup + repository: https://github.com/windup + path: windup - name: Set up JDK 11 uses: actions/setup-java@v2 with: From f10cda289affe51e45f873f9305132f36601b934 Mon Sep 17 00:00:00 2001 From: Mark Brophy <36955467+m-brophy@users.noreply.github.com> Date: Mon, 22 Nov 2021 14:07:45 +0000 Subject: [PATCH 04/22] Update cli_script_check.yml --- .github/workflows/cli_script_check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cli_script_check.yml b/.github/workflows/cli_script_check.yml index c87c42b..d9f18a5 100644 --- a/.github/workflows/cli_script_check.yml +++ b/.github/workflows/cli_script_check.yml @@ -23,7 +23,7 @@ jobs: steps: - uses: actions/checkout@v2.3.4 with: - repository: https://github.com/windup + repository: windup/windup path: windup - name: Set up JDK 11 uses: actions/setup-java@v2 From 48419a7bb090aeab1ed00bb6163f33b9ff393a07 Mon Sep 17 00:00:00 2001 From: Mark Brophy <36955467+m-brophy@users.noreply.github.com> Date: Mon, 22 Nov 2021 14:16:30 +0000 Subject: [PATCH 05/22] Update cli_script_check.yml --- .github/workflows/cli_script_check.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cli_script_check.yml b/.github/workflows/cli_script_check.yml index d9f18a5..04ee18b 100644 --- a/.github/workflows/cli_script_check.yml +++ b/.github/workflows/cli_script_check.yml @@ -38,7 +38,9 @@ jobs: key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} restore-keys: ${{ runner.os }}-m2 - name: Build on JDK 11 skipping tests - run: mvn -B clean install -DskipTests + run: + mvn -B clean install -DskipTests + working-directory: windup # build_windup_rulesets job build_windup_rulesets: From ccaf67a717e30c7875de6d5ebec68f364cd1c00d Mon Sep 17 00:00:00 2001 From: Mark Brophy <36955467+m-brophy@users.noreply.github.com> Date: Mon, 22 Nov 2021 14:32:08 +0000 Subject: [PATCH 06/22] Update cli_script_check.yml --- .github/workflows/cli_script_check.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/cli_script_check.yml b/.github/workflows/cli_script_check.yml index 04ee18b..62b92d7 100644 --- a/.github/workflows/cli_script_check.yml +++ b/.github/workflows/cli_script_check.yml @@ -46,6 +46,7 @@ jobs: build_windup_rulesets: # The type of runner that the job will run on runs-on: ubuntu-latest + needs: build_windup steps: - uses: actions/checkout@v2.3.4 @@ -70,6 +71,7 @@ jobs: build_cli: # The type of runner that the job will run on runs-on: ubuntu-latest + needs: [build_windup, build_windup_rulesets] steps: - uses: actions/checkout@v2.3.4 From 164a91be378ab9027b0edc97e382d4a230aafa06 Mon Sep 17 00:00:00 2001 From: Mark Brophy <36955467+m-brophy@users.noreply.github.com> Date: Mon, 22 Nov 2021 15:09:33 +0000 Subject: [PATCH 07/22] Update cli_script_check.yml --- .github/workflows/cli_script_check.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cli_script_check.yml b/.github/workflows/cli_script_check.yml index 62b92d7..b355681 100644 --- a/.github/workflows/cli_script_check.yml +++ b/.github/workflows/cli_script_check.yml @@ -25,10 +25,10 @@ jobs: with: repository: windup/windup path: windup - - name: Set up JDK 11 + - name: Set up JDK 8 uses: actions/setup-java@v2 with: - java-version: '11' + java-version: '8' distribution: 'adopt' java-package: jdk - name: Cache Maven packages @@ -37,7 +37,7 @@ jobs: path: ~/.m2 key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} restore-keys: ${{ runner.os }}-m2 - - name: Build on JDK 11 skipping tests + - name: Build on JDK 8 skipping tests run: mvn -B clean install -DskipTests working-directory: windup From 91940a220bd45e0f8cac0f38f68c692a84d70ffc Mon Sep 17 00:00:00 2001 From: Mark Brophy <36955467+m-brophy@users.noreply.github.com> Date: Mon, 22 Nov 2021 15:32:25 +0000 Subject: [PATCH 08/22] Update cli_script_check.yml --- .github/workflows/cli_script_check.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/cli_script_check.yml b/.github/workflows/cli_script_check.yml index b355681..2180fb4 100644 --- a/.github/workflows/cli_script_check.yml +++ b/.github/workflows/cli_script_check.yml @@ -51,11 +51,12 @@ jobs: steps: - uses: actions/checkout@v2.3.4 with: - repository: github/windup-rulesets - - name: Set up JDK 11 + repository: windup/windup-rulesets + path: windup-rulesets + - name: Set up JDK 8 uses: actions/setup-java@v2 with: - java-version: '11' + java-version: '8' distribution: 'adopt' java-package: jdk - name: Cache Maven packages @@ -64,7 +65,7 @@ jobs: path: ~/.m2 key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} restore-keys: ${{ runner.os }}-m2 - - name: Build on JDK 11 + - name: Build on JDK 8 run: mvn -B clean install -DskipTests # build_cli job @@ -75,10 +76,10 @@ jobs: steps: - uses: actions/checkout@v2.3.4 - - name: Set up JDK 11 + - name: Set up JDK 8 uses: actions/setup-java@v2 with: - java-version: '11' + java-version: '8' distribution: 'adopt' java-package: jdk - name: Cache Maven packages @@ -94,6 +95,7 @@ jobs: linux-script-check: runs-on: ubuntu-latest + needs: build_cli steps: @@ -108,6 +110,7 @@ jobs: windows-script-check: runs-on: windows-latest + needs: build_cli steps: From 50fc988d77f088a46c2ad0cbf130196de7ebbaaf Mon Sep 17 00:00:00 2001 From: Mark Brophy <36955467+m-brophy@users.noreply.github.com> Date: Mon, 22 Nov 2021 15:37:37 +0000 Subject: [PATCH 09/22] Update cli_script_check.yml --- .github/workflows/cli_script_check.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/cli_script_check.yml b/.github/workflows/cli_script_check.yml index 2180fb4..7161d68 100644 --- a/.github/workflows/cli_script_check.yml +++ b/.github/workflows/cli_script_check.yml @@ -67,6 +67,7 @@ jobs: restore-keys: ${{ runner.os }}-m2 - name: Build on JDK 8 run: mvn -B clean install -DskipTests + working-directory: windup-rulesets # build_cli job build_cli: From fcf2ec444dcfff7a439a3e4b75f2bb730449f763 Mon Sep 17 00:00:00 2001 From: Mark Brophy <36955467+m-brophy@users.noreply.github.com> Date: Tue, 23 Nov 2021 09:44:36 +0000 Subject: [PATCH 10/22] Update cli_script_check.yml --- .github/workflows/cli_script_check.yml | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/.github/workflows/cli_script_check.yml b/.github/workflows/cli_script_check.yml index 7161d68..3f9daa4 100644 --- a/.github/workflows/cli_script_check.yml +++ b/.github/workflows/cli_script_check.yml @@ -4,9 +4,7 @@ name: CI # Controls when the workflow will run on: - # Triggers the workflow on push or pull request events but only for the master branch - push: - branches: [ master ] + pull_request: branches: [ master ] @@ -91,6 +89,13 @@ jobs: restore-keys: ${{ runner.os }}-m2 - name: Build on JDK 11 run: mvn -B clean install + - name: upload mta-cli zip + uses: actions/upload-artifact@v2 + with: + name: mta-cli-zip + path: | + target/mta-cli{*}.zip + retention-days: 5 # "linux-script-check" job linux-script-check: @@ -100,12 +105,16 @@ jobs: steps: - - uses: actions/checkout@v2 + - name: Download mta-cli-zip + uses: actions/download-artifact@v2 + with: + name: mta-cli-zip - - name: Run a multi-line script + - name: unzip and run mta-cli run: | - echo Add other actions to build, - echo test, and deploy your project. + unzip mta-cli{*}.zip + cd mta-cli{*}/bin + mta-cli discoverTargets # "windows-script-check" job windows-script-check: From e0b4baba3e2d2c2ef02ce54c020b51db874e6f86 Mon Sep 17 00:00:00 2001 From: Mark Brophy <36955467+m-brophy@users.noreply.github.com> Date: Tue, 23 Nov 2021 10:42:55 +0000 Subject: [PATCH 11/22] Update cli_script_check.yml --- .github/workflows/cli_script_check.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/cli_script_check.yml b/.github/workflows/cli_script_check.yml index 3f9daa4..285553e 100644 --- a/.github/workflows/cli_script_check.yml +++ b/.github/workflows/cli_script_check.yml @@ -93,8 +93,7 @@ jobs: uses: actions/upload-artifact@v2 with: name: mta-cli-zip - path: | - target/mta-cli{*}.zip + path: target/*.zip retention-days: 5 # "linux-script-check" job From 69740e21b66601be927db1730fcef162f619b0d9 Mon Sep 17 00:00:00 2001 From: Mark Brophy <36955467+m-brophy@users.noreply.github.com> Date: Tue, 23 Nov 2021 10:53:37 +0000 Subject: [PATCH 12/22] Update cli_script_check.yml --- .github/workflows/cli_script_check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cli_script_check.yml b/.github/workflows/cli_script_check.yml index 285553e..9d76988 100644 --- a/.github/workflows/cli_script_check.yml +++ b/.github/workflows/cli_script_check.yml @@ -111,7 +111,7 @@ jobs: - name: unzip and run mta-cli run: | - unzip mta-cli{*}.zip + unzip mta-cli*offline.zip cd mta-cli{*}/bin mta-cli discoverTargets From 36cdb58dbd2bca3c978f3956b3f0987631f2b5cc Mon Sep 17 00:00:00 2001 From: Mark Brophy <36955467+m-brophy@users.noreply.github.com> Date: Tue, 23 Nov 2021 11:04:05 +0000 Subject: [PATCH 13/22] Update cli_script_check.yml --- .github/workflows/cli_script_check.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cli_script_check.yml b/.github/workflows/cli_script_check.yml index 9d76988..7740186 100644 --- a/.github/workflows/cli_script_check.yml +++ b/.github/workflows/cli_script_check.yml @@ -112,8 +112,8 @@ jobs: - name: unzip and run mta-cli run: | unzip mta-cli*offline.zip - cd mta-cli{*}/bin - mta-cli discoverTargets + cd mta-cli*/bin + ./mta-cli discoverTargets # "windows-script-check" job windows-script-check: From df004ae3d72ed553b0ee1a7bd80f23a44a63461f Mon Sep 17 00:00:00 2001 From: Mark Brophy <36955467+m-brophy@users.noreply.github.com> Date: Tue, 23 Nov 2021 11:25:01 +0000 Subject: [PATCH 14/22] Update cli_script_check.yml --- .github/workflows/cli_script_check.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cli_script_check.yml b/.github/workflows/cli_script_check.yml index 7740186..d4b1c5e 100644 --- a/.github/workflows/cli_script_check.yml +++ b/.github/workflows/cli_script_check.yml @@ -99,7 +99,10 @@ jobs: # "linux-script-check" job linux-script-check: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest] needs: build_cli steps: @@ -113,7 +116,7 @@ jobs: run: | unzip mta-cli*offline.zip cd mta-cli*/bin - ./mta-cli discoverTargets + mta-cli discoverTargets # "windows-script-check" job windows-script-check: From 1973e746ba6398e246700b0ff54292c442297468 Mon Sep 17 00:00:00 2001 From: Mark Brophy <36955467+m-brophy@users.noreply.github.com> Date: Tue, 23 Nov 2021 11:39:42 +0000 Subject: [PATCH 15/22] Update cli_script_check.yml --- .github/workflows/cli_script_check.yml | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/.github/workflows/cli_script_check.yml b/.github/workflows/cli_script_check.yml index d4b1c5e..062c9f0 100644 --- a/.github/workflows/cli_script_check.yml +++ b/.github/workflows/cli_script_check.yml @@ -99,10 +99,7 @@ jobs: # "linux-script-check" job linux-script-check: - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [ubuntu-latest, windows-latest] + runs-on: ubuntu-latest needs: build_cli steps: @@ -116,19 +113,23 @@ jobs: run: | unzip mta-cli*offline.zip cd mta-cli*/bin - mta-cli discoverTargets + ./mta-cli discoverTargets # "windows-script-check" job windows-script-check: runs-on: windows-latest - needs: build_cli + needs: [build_cli, linux-script-check] steps: - - uses: actions/checkout@v2 - - - name: Run a multi-line script + - name: Download mta-cli-zip + uses: actions/download-artifact@v2 + with: + name: mta-cli-zip + + - name: unzip and run mta-cli run: | - echo Add other actions to build, - echo test, and deploy your project. + unzip mta-cli*offline.zip + cd mta-cli*/bin + mta-cli discoverTargets From 520afe8972277ed8925fc464a95884a2a1c25daa Mon Sep 17 00:00:00 2001 From: Mark Brophy <36955467+m-brophy@users.noreply.github.com> Date: Tue, 23 Nov 2021 11:50:27 +0000 Subject: [PATCH 16/22] Update cli_script_check.yml --- .github/workflows/cli_script_check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cli_script_check.yml b/.github/workflows/cli_script_check.yml index 062c9f0..ec1f98b 100644 --- a/.github/workflows/cli_script_check.yml +++ b/.github/workflows/cli_script_check.yml @@ -132,4 +132,4 @@ jobs: run: | unzip mta-cli*offline.zip cd mta-cli*/bin - mta-cli discoverTargets + mta-cli.bat discoverTargets From 2f0863d334c6f5aaeeaafbb98191e00bf4da2243 Mon Sep 17 00:00:00 2001 From: Mark Brophy <36955467+m-brophy@users.noreply.github.com> Date: Tue, 23 Nov 2021 12:05:59 +0000 Subject: [PATCH 17/22] Update cli_script_check.yml --- .github/workflows/cli_script_check.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/cli_script_check.yml b/.github/workflows/cli_script_check.yml index ec1f98b..48685ca 100644 --- a/.github/workflows/cli_script_check.yml +++ b/.github/workflows/cli_script_check.yml @@ -123,13 +123,15 @@ jobs: steps: - - name: Download mta-cli-zip - uses: actions/download-artifact@v2 - with: - name: mta-cli-zip + # - name: Download mta-cli-zip + # uses: actions/download-artifact@v2 + # with: + # name: mta-cli-zip - name: unzip and run mta-cli run: | - unzip mta-cli*offline.zip - cd mta-cli*/bin mta-cli.bat discoverTargets + + # unzip mta-cli*offline.zip + # cd mta-cli*/bin + # mta-cli.bat discoverTargets From 74a3c1fdb463b3929f2f286bcbd6a8c671653e70 Mon Sep 17 00:00:00 2001 From: Mark Brophy <36955467+m-brophy@users.noreply.github.com> Date: Tue, 23 Nov 2021 13:47:37 +0000 Subject: [PATCH 18/22] Update cli_script_check.yml --- .github/workflows/cli_script_check.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/cli_script_check.yml b/.github/workflows/cli_script_check.yml index 48685ca..143c9f8 100644 --- a/.github/workflows/cli_script_check.yml +++ b/.github/workflows/cli_script_check.yml @@ -130,8 +130,6 @@ jobs: - name: unzip and run mta-cli run: | - mta-cli.bat discoverTargets - - # unzip mta-cli*offline.zip - # cd mta-cli*/bin - # mta-cli.bat discoverTargets + unzip mta-cli*offline.zip + cd mta-cli*/bin + cmd.exe mta-cli.bat discoverTargets From 093031e04454bbcb0adddb57ca223db453995acf Mon Sep 17 00:00:00 2001 From: Mark Brophy <36955467+m-brophy@users.noreply.github.com> Date: Tue, 23 Nov 2021 14:11:35 +0000 Subject: [PATCH 19/22] Update cli_script_check.yml --- .github/workflows/cli_script_check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cli_script_check.yml b/.github/workflows/cli_script_check.yml index 143c9f8..edf92b1 100644 --- a/.github/workflows/cli_script_check.yml +++ b/.github/workflows/cli_script_check.yml @@ -131,5 +131,5 @@ jobs: - name: unzip and run mta-cli run: | unzip mta-cli*offline.zip - cd mta-cli*/bin + cd mta-cli*\bin cmd.exe mta-cli.bat discoverTargets From 81460d9a580d856fc9f590cdb3454f498b55d0b0 Mon Sep 17 00:00:00 2001 From: Mark Brophy <36955467+m-brophy@users.noreply.github.com> Date: Tue, 23 Nov 2021 14:25:21 +0000 Subject: [PATCH 20/22] Update cli_script_check.yml --- .github/workflows/cli_script_check.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cli_script_check.yml b/.github/workflows/cli_script_check.yml index edf92b1..b3a1dc2 100644 --- a/.github/workflows/cli_script_check.yml +++ b/.github/workflows/cli_script_check.yml @@ -131,5 +131,6 @@ jobs: - name: unzip and run mta-cli run: | unzip mta-cli*offline.zip - cd mta-cli*\bin + cd mta-cli* + cd bin cmd.exe mta-cli.bat discoverTargets From 962e1f4ec74039a978660b590aa1459b3b7a78f3 Mon Sep 17 00:00:00 2001 From: Mark Brophy <36955467+m-brophy@users.noreply.github.com> Date: Tue, 23 Nov 2021 14:37:49 +0000 Subject: [PATCH 21/22] Update cli_script_check.yml --- .github/workflows/cli_script_check.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cli_script_check.yml b/.github/workflows/cli_script_check.yml index b3a1dc2..952165f 100644 --- a/.github/workflows/cli_script_check.yml +++ b/.github/workflows/cli_script_check.yml @@ -123,10 +123,10 @@ jobs: steps: - # - name: Download mta-cli-zip - # uses: actions/download-artifact@v2 - # with: - # name: mta-cli-zip + - name: Download mta-cli-zip + uses: actions/download-artifact@v2 + with: + name: mta-cli-zip - name: unzip and run mta-cli run: | From 6469de0ddba294018894c290f61b93022a4e647a Mon Sep 17 00:00:00 2001 From: Mark Brophy <36955467+m-brophy@users.noreply.github.com> Date: Tue, 23 Nov 2021 14:58:52 +0000 Subject: [PATCH 22/22] Update cli_script_check.yml --- .github/workflows/cli_script_check.yml | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/.github/workflows/cli_script_check.yml b/.github/workflows/cli_script_check.yml index 952165f..fea75d4 100644 --- a/.github/workflows/cli_script_check.yml +++ b/.github/workflows/cli_script_check.yml @@ -1,21 +1,19 @@ # Workflow to build and check cli_scripts in Linux and Windows -name: CI +name: Check mta-cli scripts -# Controls when the workflow will run -on: - + +on: pull_request: branches: [ master ] # Allows you to run this workflow manually from the Actions tab workflow_dispatch: -# A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: + # build_windup job build_windup: - # The type of runner that the job will run on runs-on: ubuntu-latest steps: @@ -42,7 +40,6 @@ jobs: # build_windup_rulesets job build_windup_rulesets: - # The type of runner that the job will run on runs-on: ubuntu-latest needs: build_windup @@ -69,7 +66,6 @@ jobs: # build_cli job build_cli: - # The type of runner that the job will run on runs-on: ubuntu-latest needs: [build_windup, build_windup_rulesets] @@ -87,7 +83,7 @@ jobs: path: ~/.m2 key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} restore-keys: ${{ runner.os }}-m2 - - name: Build on JDK 11 + - name: Build on JDK 8 run: mvn -B clean install - name: upload mta-cli zip uses: actions/upload-artifact@v2 @@ -97,8 +93,7 @@ jobs: retention-days: 5 # "linux-script-check" job - linux-script-check: - + linux-script-check: runs-on: ubuntu-latest needs: build_cli @@ -116,8 +111,7 @@ jobs: ./mta-cli discoverTargets # "windows-script-check" job - windows-script-check: - + windows-script-check: runs-on: windows-latest needs: [build_cli, linux-script-check]