From 9f1856f72762cc9a2760329e6964af10534f7810 Mon Sep 17 00:00:00 2001 From: Jerry Lee Date: Sat, 20 Apr 2024 23:12:26 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20rename=20`CompletableFuture`=20extensio?= =?UTF-8?q?n=20methods=20of=20Backport=20CF=20instance=20methods,=20remove?= =?UTF-8?q?=20prefix=20`cffu`=20=F0=9F=8D=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yaml | 3 +- .github/workflows/fast_ci.yaml | 18 ------- .../java/io/foldright/cffu/CffuFactory.java | 10 ++-- .../CompletableFutureUsageShowcaseTest.kt | 3 -- .../kotlin/CompletableFutureExtensions.kt | 49 ++++++++++--------- .../test/CompletableFutureExtensionsTest.kt | 36 +++++++------- scripts/integration_test | 41 +++++++++++++++- 7 files changed, 88 insertions(+), 72 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index f6279504..37ca6345 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -7,7 +7,7 @@ jobs: test: # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#choosing-github-hosted-runners runs-on: ubuntu-latest - timeout-minutes: 10 + timeout-minutes: 15 name: CI by multiply java versions steps: @@ -26,7 +26,6 @@ jobs: 21 22 distribution: zulu - # only first java setup need enable cache cache: maven - name: Run integration test diff --git a/.github/workflows/fast_ci.yaml b/.github/workflows/fast_ci.yaml index 6ee48d24..bb046d3a 100644 --- a/.github/workflows/fast_ci.yaml +++ b/.github/workflows/fast_ci.yaml @@ -23,24 +23,6 @@ jobs: with: java-version: 21 distribution: microsoft - # only first java setup need enable cache cache: maven - name: Build and test with Java 21 run: ./mvnw -V --no-transfer-progress clean install - - - name: Setup Java 8 - uses: actions/setup-java@v4 - with: - java-version: 8 - distribution: zulu - - name: Test with Java 8 - run: ./mvnw -V --no-transfer-progress surefire:test - - - name: 'Remove self maven install files(OS: *nix)' - run: rm -rf $HOME/.m2/repository/io/foldright/cffu* - # https://docs.github.com/en/actions/learn-github-actions/expressions - # https://docs.github.com/en/actions/learn-github-actions/variables#detecting-the-operating-system - if: runner.os != 'Windows' - - name: 'Remove self maven install files(OS: Windows)' - run: Remove-Item -Recurse -Force $home/.m2/repository/io/foldright/cffu* - if: runner.os == 'Windows' diff --git a/cffu-core/src/main/java/io/foldright/cffu/CffuFactory.java b/cffu-core/src/main/java/io/foldright/cffu/CffuFactory.java index dbcd53d2..d7050fee 100644 --- a/cffu-core/src/main/java/io/foldright/cffu/CffuFactory.java +++ b/cffu-core/src/main/java/io/foldright/cffu/CffuFactory.java @@ -33,7 +33,6 @@ * About factory methods conventions of {@link CffuFactory}: *