From f52f0a80390891421b10f7866a987f8cbcd51d68 Mon Sep 17 00:00:00 2001 From: Jerry Lee Date: Thu, 4 Aug 2022 19:48:56 +0800 Subject: [PATCH] chore(ci): improve `ci.yaml`: - add job timeout of github CI - add maven output options --- .github/workflows/ci.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d36a47b76..64a9332ee 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -15,6 +15,7 @@ on: jobs: test: runs-on: ${{ matrix.os }} + timeout-minutes: 20 strategy: matrix: os: [ ubuntu-18.04 ] @@ -32,9 +33,9 @@ jobs: java-version: ${{ matrix.java }} cache: 'maven' - name: Build with Maven - run: ./mvnw -Pgen-javadoc -Pgen-dokka clean package -B + run: ./mvnw -V --no-transfer-progress -Pgen-javadoc -Pgen-dokka clean package - name: Generate code coverage - run: ./mvnw -Pgen-code-cov clean test + run: ./mvnw -V --no-transfer-progress -Pgen-code-cov clean test # https://github.com/marketplace/actions/codecov - uses: codecov/codecov-action@v3 with: