feature: 新增 file-generate
插件,目前考虑的应用场景:如:gitlab的Issue或MR的模板文件,通过在框架…
#147
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Test" | |
on: | |
push: | |
branches: [ develop ] | |
pull_request: | |
branches: [ develop ] | |
jobs: | |
test: | |
name: "Test" | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
java: [ 8, 11, 17, 21 ] | |
maven: [ | |
3.9.5, | |
3.8.8, | |
3.6.3, | |
3.5.4, | |
3.3.9, | |
3.2.5, | |
3.1.1, | |
3.0.5, | |
# not support 2.x | |
#2.2.1, | |
#2.1.0, | |
#2.0.11 | |
] | |
steps: | |
# step 1 | |
- name: "Checkout" | |
uses: actions/[email protected] | |
# step 2 | |
- name: "Setup Java JDK" | |
uses: actions/[email protected] | |
with: | |
distribution: 'zulu' | |
java-version: ${{ matrix.java }} | |
# step 3 | |
- name: "Print maven version" | |
run: | | |
mvn -version | |
# step 4 | |
- name: "Run Test With Maven" | |
run: | | |
if [ "${{ matrix.java }}" == "8" ]; then | |
mvn clean test -Pcicd8 -Dmaven.version=${{ matrix.maven }} -e -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn; | |
else | |
mvn clean test -Pcicd -Dmaven.version=${{ matrix.maven }} -e -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn; | |
fi | |
# step 5 | |
- name: "Codecov" | |
if: matrix.java == '8' && matrix.maven == '3.9.0' && (github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/master') | |
uses: codecov/[email protected] |