You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- # This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
- # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
-
- name: 自动化编译检查
-
- on: [ push ]
-
- jobs:
- build:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v3
- - name: 设置 JDK 版本
- uses: actions/setup-java@v3
- with:
- java-version: '17'
- distribution: 'corretto'
- cache: maven
- - name: 编译检查
- id: compile
- run: mvn clean compile -DskipTests -Dmaven.javadoc.skip=true -B -V
- - name: 通知
- uses: yakumioto/serverchan-action@v2
- with:
- key: ${{ secrets.sckey }}
- text: "[CI-BOT] - $GITHUB_REPOSITORY"
- desp: "仓库名称:$GITHUB_REPOSITORY\nCI任务:$GITHUB_WORKFLOW\n运行结果:"+${{join(steps.compile.outputs.*, '\n')}}
|