From f8a5a28ba98840c1d7856aeea6762bbf255934d6 Mon Sep 17 00:00:00 2001 From: Jerry Lee Date: Thu, 8 Feb 2024 17:14:41 +0800 Subject: [PATCH] =?UTF-8?q?build/ci:=20simplify=20`strong=5Fci.yaml`=20?= =?UTF-8?q?=F0=9F=8C=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/strong_ci.yaml | 40 ++++++++++++++------------------ 1 file changed, 17 insertions(+), 23 deletions(-) diff --git a/.github/workflows/strong_ci.yaml b/.github/workflows/strong_ci.yaml index a36dc72..f9a30f4 100644 --- a/.github/workflows/strong_ci.yaml +++ b/.github/workflows/strong_ci.yaml @@ -15,28 +15,17 @@ jobs: with: submodules: recursive - - name: Setup Java 8 - uses: actions/setup-java@v3 + - name: Setup Java + uses: actions/setup-java@v4 with: - java-version: 8 + # https://github.com/actions/setup-java?tab=readme-ov-file#install-multiple-jdks + java-version: | + 8 + 11 + 17 + 21 distribution: zulu - # only first java setup need enable cache cache: maven - - name: Setup Java 11 - uses: actions/setup-java@v3 - with: - java-version: 11 - distribution: microsoft - - name: Setup Java 17 - uses: actions/setup-java@v3 - with: - java-version: 17 - distribution: microsoft - - name: Setup Java 21 - uses: actions/setup-java@v3 - with: - java-version: 21 - distribution: zulu - name: Run integration test run: scripts/integration_test.sh @@ -45,7 +34,12 @@ jobs: run: rm -rf $HOME/.m2/repository/io/foldright/study* - name: Upload coverage reports to Codecov - uses: codecov/codecov-action@v3 - with: - name: codecov-umbrella - token: ${{ secrets.CODECOV_TOKEN }} + uses: codecov/codecov-action@v4 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + + # https://remarkablemark.org/blog/2017/10/12/check-git-dirty/ + - name: Check git dirty + run: | + git status --short + [ -z "$(git status --short)" ]