mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
43 lines
1.0 KiB
YAML
43 lines
1.0 KiB
YAML
---
|
|
name: Java CI
|
|
|
|
on:
|
|
push:
|
|
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-excluding-paths
|
|
paths-ignore:
|
|
- 'docs/**'
|
|
- '**.md'
|
|
pull_request:
|
|
paths-ignore:
|
|
- 'docs/**'
|
|
- '**.md'
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [ ubuntu-18.04 ]
|
|
java: [ 8 ]
|
|
fail-fast: false
|
|
max-parallel: 16
|
|
name: Test JDK ${{ matrix.java }}, ${{ matrix.os }}
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Set up JDK
|
|
uses: actions/setup-java@v3
|
|
with:
|
|
distribution: 'zulu'
|
|
java-version: ${{ matrix.java }}
|
|
cache: 'maven'
|
|
- name: Build with Maven
|
|
run: ./mvnw -Pgen-javadoc clean package -B
|
|
- name: Generate code coverage
|
|
run: ./mvnw -Pgen-code-cov clean test
|
|
# https://github.com/marketplace/actions/codecov
|
|
- uses: codecov/codecov-action@v3
|
|
with:
|
|
name: codecov-umbrella
|
|
token: ${{ secrets.CODECOV_TOKEN }}
|