1 Star 0 Fork 121

Tree / mybatis

forked from Gitee 极速下载 / mybatis 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
ci.yaml 2.53 KB
一键复制 编辑 原始数据 按行查看 历史
name: Java CI
on: [push, pull_request]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
java: [11, 17, 19, 20, 21]
distribution: ['zulu']
fail-fast: false
max-parallel: 4
name: Test JDK ${{ matrix.java }}, ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set JDK from jdk.java.net
uses: oracle-actions/setup-java@v1
with:
website: jdk.java.net
release: ${{ matrix.java }}
if: ${{ matrix.java != '11' && matrix.java != '17' }}
- name: Set up older JDK
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
distribution: ${{ matrix.distribution }}
if: ${{ matrix.java == '11' || matrix.java == '17' }}
- name: Print JDK Version
run: java -version
- name: Cache local Maven m2
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-m2
- name: Set argLine command line option
if: ${{ matrix.java == '11' }}
run: echo 'ARG_LINE=-D"argLine=--illegal-access=permit"' >> $GITHUB_ENV
- name: Run all tests
if: ${{ matrix.os == 'ubuntu-latest' && matrix.java == '11' }}
run: echo 'ARG_LINE=-D"excludedGroups="' >> $GITHUB_ENV
- name: Skip tests that require illegal reflective access
if: ${{ matrix.os == 'ubuntu-latest' && matrix.java != '11' }}
run: echo 'ARG_LINE=-D"excludedGroups=RequireIllegalAccess"' >> $GITHUB_ENV
- name: Skip tests that require illegal reflective access
if: ${{ matrix.os != 'ubuntu-latest' && matrix.java != '11' }}
run: echo 'ARG_LINE=-D"excludedGroups=TestcontainersTests,RequireIllegalAccess"' >> $GITHUB_ENV
- name: Active Profiles
run: ./mvnw help:active-profiles
- name: Test with Maven
if: ${{ matrix.os != 'windows-latest' }}
run: ./mvnw test -B -D"license.skip=true" -D"jacoco.skip=true" $ARG_LINE
- name: Test with Maven
if: ${{ matrix.os == 'windows-latest' && matrix.java == '11' }}
run: ./mvnw test -B -D"license.skip=true" -D"jacoco.skip=true" -D"argLine=--illegal-access=permit"
- name: Test with Maven
if: ${{ matrix.os == 'windows-latest' && matrix.java != '11' }}
run: ./mvnw test -B -D"license.skip=true" -D"jacoco.skip=true" -D"excludedGroups=TestcontainersTests,RequireIllegalAccess"
1
https://gitee.com/tree_boss/mybatis.git
git@gitee.com:tree_boss/mybatis.git
tree_boss
mybatis
mybatis
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891