mirror of https://github.com/alibaba/fastjson2.git
chore(ci): improve `ci.yaml`:
- add job timeout of github CI - add maven output options
This commit is contained in:
parent
b372de3e5b
commit
f52f0a8039
|
|
@ -15,6 +15,7 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
timeout-minutes: 20
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ ubuntu-18.04 ]
|
os: [ ubuntu-18.04 ]
|
||||||
|
|
@ -32,9 +33,9 @@ jobs:
|
||||||
java-version: ${{ matrix.java }}
|
java-version: ${{ matrix.java }}
|
||||||
cache: 'maven'
|
cache: 'maven'
|
||||||
- name: Build with 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
|
- 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
|
# https://github.com/marketplace/actions/codecov
|
||||||
- uses: codecov/codecov-action@v3
|
- uses: codecov/codecov-action@v3
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue