From 75db361337a011306f0d3dcf1b3a422f78795429 Mon Sep 17 00:00:00 2001 From: 0marperez Date: Fri, 17 Jan 2025 13:02:33 -0500 Subject: [PATCH 1/5] feat: use custom gradle URL --- .github/workflows/continuous-integration.yml | 6 ++++++ .github/workflows/lint.yml | 2 ++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 6eb03dd..ea281e1 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -27,6 +27,8 @@ jobs: key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} restore-keys: | ${{ runner.os }}-gradle- + - name: Configure Gradle + uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main - name: Build and Test ${{ env.PACKAGE_NAME }} run: | ./gradlew build @@ -44,6 +46,8 @@ jobs: key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} restore-keys: | ${{ runner.os }}-gradle- + - name: Configure Gradle + uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main - name: Build and Test ${{ env.PACKAGE_NAME }} run: | ./gradlew build @@ -53,6 +57,8 @@ jobs: steps: - name: Checkout sources uses: actions/checkout@v2 + - name: Configure Gradle + uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main - name: Build and Test ${{ env.PACKAGE_NAME }} run: | ./gradlew build \ No newline at end of file diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index c2ec611..d3c779e 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -18,6 +18,8 @@ jobs: steps: - name: Checkout sources uses: actions/checkout@v2 + - name: Configure Gradle + uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main - name: Lint ${{ env.PACKAGE_NAME }} run: | ./gradlew ktlint From 643c02c744ac3814ed31849fbc8313a31229e58a Mon Sep 17 00:00:00 2001 From: 0marperez Date: Tue, 4 Feb 2025 13:37:44 -0500 Subject: [PATCH 2/5] fix: use action from local branch instead of the one from main --- .github/workflows/continuous-integration.yml | 6 +++--- .github/workflows/lint.yml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index ea281e1..241997c 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -28,7 +28,7 @@ jobs: restore-keys: | ${{ runner.os }}-gradle- - name: Configure Gradle - uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main + uses: .github/actions/configure-gradle - name: Build and Test ${{ env.PACKAGE_NAME }} run: | ./gradlew build @@ -47,7 +47,7 @@ jobs: restore-keys: | ${{ runner.os }}-gradle- - name: Configure Gradle - uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main + uses: .github/actions/configure-gradle - name: Build and Test ${{ env.PACKAGE_NAME }} run: | ./gradlew build @@ -58,7 +58,7 @@ jobs: - name: Checkout sources uses: actions/checkout@v2 - name: Configure Gradle - uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main + uses: .github/actions/configure-gradle - name: Build and Test ${{ env.PACKAGE_NAME }} run: | ./gradlew build \ No newline at end of file diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index d3c779e..0559c96 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -19,7 +19,7 @@ jobs: - name: Checkout sources uses: actions/checkout@v2 - name: Configure Gradle - uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main + uses: .github/actions/configure-gradle - name: Lint ${{ env.PACKAGE_NAME }} run: | ./gradlew ktlint From 5075fbc79ca67427c4a8b4e72061f279432078f2 Mon Sep 17 00:00:00 2001 From: 0marperez Date: Tue, 4 Feb 2025 13:47:56 -0500 Subject: [PATCH 3/5] fix: path to workflow --- .github/workflows/continuous-integration.yml | 6 +++--- .github/workflows/lint.yml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 241997c..24a56df 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -28,7 +28,7 @@ jobs: restore-keys: | ${{ runner.os }}-gradle- - name: Configure Gradle - uses: .github/actions/configure-gradle + uses: ./aws-kotlin-repo-tools/.github/actions/configure-gradle - name: Build and Test ${{ env.PACKAGE_NAME }} run: | ./gradlew build @@ -47,7 +47,7 @@ jobs: restore-keys: | ${{ runner.os }}-gradle- - name: Configure Gradle - uses: .github/actions/configure-gradle + uses: ./aws-kotlin-repo-tools/.github/actions/configure-gradle - name: Build and Test ${{ env.PACKAGE_NAME }} run: | ./gradlew build @@ -58,7 +58,7 @@ jobs: - name: Checkout sources uses: actions/checkout@v2 - name: Configure Gradle - uses: .github/actions/configure-gradle + uses: ./aws-kotlin-repo-tools/.github/actions/configure-gradle - name: Build and Test ${{ env.PACKAGE_NAME }} run: | ./gradlew build \ No newline at end of file diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 0559c96..04f2fb5 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -19,7 +19,7 @@ jobs: - name: Checkout sources uses: actions/checkout@v2 - name: Configure Gradle - uses: .github/actions/configure-gradle + uses: ./aws-kotlin-repo-tools/.github/actions/configure-gradle - name: Lint ${{ env.PACKAGE_NAME }} run: | ./gradlew ktlint From 18ae549ea577fcce1acb6547c2756b1b75a4ec83 Mon Sep 17 00:00:00 2001 From: 0marperez Date: Tue, 4 Feb 2025 13:49:52 -0500 Subject: [PATCH 4/5] debug: run ls & pwd to see why path is wrong --- .github/workflows/lint.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 04f2fb5..f84d30e 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -18,6 +18,8 @@ jobs: steps: - name: Checkout sources uses: actions/checkout@v2 + - name: Run ls + run: ls & pwd - name: Configure Gradle uses: ./aws-kotlin-repo-tools/.github/actions/configure-gradle - name: Lint ${{ env.PACKAGE_NAME }} From 13dc62ce24abdf132a7aca8848cae2882ac357e9 Mon Sep 17 00:00:00 2001 From: 0marperez Date: Tue, 4 Feb 2025 13:53:17 -0500 Subject: [PATCH 5/5] test: add ./ before path --- .github/workflows/continuous-integration.yml | 6 +++--- .github/workflows/lint.yml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 24a56df..e6a1882 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -28,7 +28,7 @@ jobs: restore-keys: | ${{ runner.os }}-gradle- - name: Configure Gradle - uses: ./aws-kotlin-repo-tools/.github/actions/configure-gradle + uses: ./.github/actions/configure-gradle - name: Build and Test ${{ env.PACKAGE_NAME }} run: | ./gradlew build @@ -47,7 +47,7 @@ jobs: restore-keys: | ${{ runner.os }}-gradle- - name: Configure Gradle - uses: ./aws-kotlin-repo-tools/.github/actions/configure-gradle + uses: ./.github/actions/configure-gradle - name: Build and Test ${{ env.PACKAGE_NAME }} run: | ./gradlew build @@ -58,7 +58,7 @@ jobs: - name: Checkout sources uses: actions/checkout@v2 - name: Configure Gradle - uses: ./aws-kotlin-repo-tools/.github/actions/configure-gradle + uses: ./.github/actions/configure-gradle - name: Build and Test ${{ env.PACKAGE_NAME }} run: | ./gradlew build \ No newline at end of file diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index f84d30e..79de527 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -21,7 +21,7 @@ jobs: - name: Run ls run: ls & pwd - name: Configure Gradle - uses: ./aws-kotlin-repo-tools/.github/actions/configure-gradle + uses: ./.github/actions/configure-gradle - name: Lint ${{ env.PACKAGE_NAME }} run: | ./gradlew ktlint