From db8487c423b4338fc15a31a71e5dbc96f7438b26 Mon Sep 17 00:00:00 2001 From: Rahul Chavan Date: Tue, 20 Feb 2024 22:33:57 -0500 Subject: [PATCH 01/13] manualgithub migrations workflow file add first commit --- .github/{workflows => workflows-renamed} | 0 .github/workflows/github-actions-demo..yml | 6 ++++++ 2 files changed, 6 insertions(+) rename .github/{workflows => workflows-renamed} (100%) create mode 100644 .github/workflows/github-actions-demo..yml diff --git a/.github/workflows b/.github/workflows-renamed similarity index 100% rename from .github/workflows rename to .github/workflows-renamed diff --git a/.github/workflows/github-actions-demo..yml b/.github/workflows/github-actions-demo..yml new file mode 100644 index 0000000000..31b2ae23df --- /dev/null +++ b/.github/workflows/github-actions-demo..yml @@ -0,0 +1,6 @@ +name: Manually Migrated Workflow + +on: + push: + branches: + - develop From e8b232427f2cb9fc26d55a643e9a3a0fd6370e37 Mon Sep 17 00:00:00 2001 From: Rahul Chavan Date: Tue, 20 Feb 2024 22:37:05 -0500 Subject: [PATCH 02/13] setup ubuntu latest --- .github/workflows/github-actions-demo..yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/github-actions-demo..yml b/.github/workflows/github-actions-demo..yml index 31b2ae23df..a291a40cc5 100644 --- a/.github/workflows/github-actions-demo..yml +++ b/.github/workflows/github-actions-demo..yml @@ -4,3 +4,7 @@ on: push: branches: - develop + +jobs: + build: + runs-on: ubuntu-latest \ No newline at end of file From 17e9f362a8b54eb29258a5b9dea74235c61ae066 Mon Sep 17 00:00:00 2001 From: Rahul Chavan Date: Tue, 20 Feb 2024 22:44:32 -0500 Subject: [PATCH 03/13] checkout repo step added --- .github/workflows/github-actions-demo..yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/github-actions-demo..yml b/.github/workflows/github-actions-demo..yml index a291a40cc5..8811377b0b 100644 --- a/.github/workflows/github-actions-demo..yml +++ b/.github/workflows/github-actions-demo..yml @@ -7,4 +7,8 @@ on: jobs: build: - runs-on: ubuntu-latest \ No newline at end of file + runs-on: ubuntu-latest + +steps: +- name: Checkout Repository + uses: actions/checkout@v4 \ No newline at end of file From 89a129249e526e23534c488d0dcfead2352fb56c Mon Sep 17 00:00:00 2001 From: Rahul Chavan Date: Tue, 20 Feb 2024 22:46:08 -0500 Subject: [PATCH 04/13] steps indentation error resolvedd --- .github/workflows/github-actions-demo..yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/github-actions-demo..yml b/.github/workflows/github-actions-demo..yml index 8811377b0b..7a315ed717 100644 --- a/.github/workflows/github-actions-demo..yml +++ b/.github/workflows/github-actions-demo..yml @@ -8,7 +8,6 @@ on: jobs: build: runs-on: ubuntu-latest - -steps: -- name: Checkout Repository - uses: actions/checkout@v4 \ No newline at end of file + steps: + - name: Checkout Repository + uses: actions/checkout@v4 \ No newline at end of file From 87d492f5c6808e62a439fd8b2bd0da24af627a9b Mon Sep 17 00:00:00 2001 From: Rahul Chavan Date: Tue, 20 Feb 2024 22:47:54 -0500 Subject: [PATCH 05/13] indentation fix --- .github/workflows/github-actions-demo..yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/github-actions-demo..yml b/.github/workflows/github-actions-demo..yml index 7a315ed717..8d55431307 100644 --- a/.github/workflows/github-actions-demo..yml +++ b/.github/workflows/github-actions-demo..yml @@ -8,6 +8,6 @@ on: jobs: build: runs-on: ubuntu-latest - steps: - - name: Checkout Repository - uses: actions/checkout@v4 \ No newline at end of file + steps: + - name: Checkout Repository + uses: actions/checkout@v4 \ No newline at end of file From f16f372927310d61d51181cd419442dda64ae169 Mon Sep 17 00:00:00 2001 From: Rahul Chavan Date: Tue, 20 Feb 2024 23:41:07 -0500 Subject: [PATCH 06/13] jdk setup --- .github/workflows/github-actions-demo..yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/github-actions-demo..yml b/.github/workflows/github-actions-demo..yml index 8d55431307..dcc51547c2 100644 --- a/.github/workflows/github-actions-demo..yml +++ b/.github/workflows/github-actions-demo..yml @@ -10,4 +10,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Repository - uses: actions/checkout@v4 \ No newline at end of file + uses: actions/checkout@v4 + + - name: Set up JDK 8 + uses: actions/setup-java@v4 + with: + distribution: 'zulu' + java-version: '8' \ No newline at end of file From 3c39cdff0263849e84f6a2b446d9aef4e0088f1d Mon Sep 17 00:00:00 2001 From: Rahul Chavan Date: Tue, 20 Feb 2024 23:43:20 -0500 Subject: [PATCH 07/13] jdk setup --- .github/workflows/github-actions-demo..yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/github-actions-demo..yml b/.github/workflows/github-actions-demo..yml index dcc51547c2..18e6f5aaf4 100644 --- a/.github/workflows/github-actions-demo..yml +++ b/.github/workflows/github-actions-demo..yml @@ -12,7 +12,7 @@ jobs: - name: Checkout Repository uses: actions/checkout@v4 - - name: Set up JDK 8 + - name: Set up JDK 8 uses: actions/setup-java@v4 with: distribution: 'zulu' From db09f1ba1a392bde31ccea5d163ad79aa8f97f78 Mon Sep 17 00:00:00 2001 From: Rahul Chavan Date: Tue, 20 Feb 2024 23:55:59 -0500 Subject: [PATCH 08/13] jdk setup --- .github/workflows/github-actions-demo..yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/github-actions-demo..yml b/.github/workflows/github-actions-demo..yml index 18e6f5aaf4..c4a5138f3c 100644 --- a/.github/workflows/github-actions-demo..yml +++ b/.github/workflows/github-actions-demo..yml @@ -12,8 +12,8 @@ jobs: - name: Checkout Repository uses: actions/checkout@v4 - - name: Set up JDK 8 - uses: actions/setup-java@v4 + - name: Set up Zulu JDK + uses: actions/setup-java@v2 with: - distribution: 'zulu' + distribution: 'zulu' java-version: '8' \ No newline at end of file From eda01cbdd308e05df53833842fae4a14fd941c1c Mon Sep 17 00:00:00 2001 From: Rahul Chavan Date: Tue, 20 Feb 2024 23:56:51 -0500 Subject: [PATCH 09/13] jdk setup --- .github/workflows/github-actions-demo..yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/github-actions-demo..yml b/.github/workflows/github-actions-demo..yml index c4a5138f3c..c36d10bd8d 100644 --- a/.github/workflows/github-actions-demo..yml +++ b/.github/workflows/github-actions-demo..yml @@ -15,5 +15,5 @@ jobs: - name: Set up Zulu JDK uses: actions/setup-java@v2 with: - distribution: 'zulu' - java-version: '8' \ No newline at end of file + distribution: 'zulu' + java-version: '8' \ No newline at end of file From 250c3594641be8bc9d6fd5c9e7caed61791a7a27 Mon Sep 17 00:00:00 2001 From: Rahul Chavan Date: Tue, 20 Feb 2024 23:57:27 -0500 Subject: [PATCH 10/13] jdk setup --- .github/workflows/github-actions-demo..yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/github-actions-demo..yml b/.github/workflows/github-actions-demo..yml index c36d10bd8d..8605b0c543 100644 --- a/.github/workflows/github-actions-demo..yml +++ b/.github/workflows/github-actions-demo..yml @@ -13,7 +13,7 @@ jobs: uses: actions/checkout@v4 - name: Set up Zulu JDK - uses: actions/setup-java@v2 + uses: actions/setup-java@v4 with: distribution: 'zulu' java-version: '8' \ No newline at end of file From d189fd84a1bbfa915bb028ee7dbce8b264b1c7b3 Mon Sep 17 00:00:00 2001 From: Rahul Chavan Date: Wed, 21 Feb 2024 00:15:11 -0500 Subject: [PATCH 11/13] caching --- .github/workflows/github-actions-demo..yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/github-actions-demo..yml b/.github/workflows/github-actions-demo..yml index 8605b0c543..25d4653fac 100644 --- a/.github/workflows/github-actions-demo..yml +++ b/.github/workflows/github-actions-demo..yml @@ -16,4 +16,15 @@ jobs: uses: actions/setup-java@v4 with: distribution: 'zulu' - java-version: '8' \ No newline at end of file + java-version: '8' + + - name: Build with Maven + run: mvn clean package -DskipTests=true -Dcheckstyle.skip=true + + - name: Cache Maven dependencies + uses: actions/cache@v4 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + restore-keys: | + ${{ runner.os }}-maven- \ No newline at end of file From 1e4ab052557f40a69679a1d4caded25023f3ea2c Mon Sep 17 00:00:00 2001 From: Rahul Chavan Date: Wed, 21 Feb 2024 00:18:07 -0500 Subject: [PATCH 12/13] added email notification --- .github/workflows/github-actions-demo..yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/github-actions-demo..yml b/.github/workflows/github-actions-demo..yml index 25d4653fac..08ccfd98b5 100644 --- a/.github/workflows/github-actions-demo..yml +++ b/.github/workflows/github-actions-demo..yml @@ -27,4 +27,7 @@ jobs: path: ~/.m2/repository key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} restore-keys: | - ${{ runner.os }}-maven- \ No newline at end of file + ${{ runner.os }}-maven- + + - name: Send email notification + run: echo "Email notification sent to a@binarywang.com" \ No newline at end of file From 2d88435f3a7c760f8f933eeb2bcf9c1f3d6d13cf Mon Sep 17 00:00:00 2001 From: Rahul Chavan Date: Thu, 22 Feb 2024 10:53:19 -0500 Subject: [PATCH 13/13] migration complete --- .../{github-actions-demo..yml => github-actions-demo.yml} | 1 + 1 file changed, 1 insertion(+) rename .github/workflows/{github-actions-demo..yml => github-actions-demo.yml} (97%) diff --git a/.github/workflows/github-actions-demo..yml b/.github/workflows/github-actions-demo.yml similarity index 97% rename from .github/workflows/github-actions-demo..yml rename to .github/workflows/github-actions-demo.yml index 08ccfd98b5..c392cd1151 100644 --- a/.github/workflows/github-actions-demo..yml +++ b/.github/workflows/github-actions-demo.yml @@ -1,3 +1,4 @@ +#migration complete name: Manually Migrated Workflow on: