build(deps): bump org.apache.maven.plugins:maven-surefire-plugin #202
Workflow file for this run
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
# 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: Build & Test | |
on: | |
# 支持手动触发构建 | |
workflow_dispatch: | |
push: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: "Set up JDK" | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '18' | |
distribution: 'adopt' | |
cache: maven | |
- name: "Package" | |
run: mvn -B package --file pom.xml | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: "Upload artifacts" | |
uses: actions/upload-artifact@v2 | |
with: | |
name: artifacts | |
path: "**/target/" | |
retention-days: 1 # 仅保留1天。 | |
- name: "Upload assets" | |
uses: actions/upload-artifact@v2 | |
with: | |
name: assets | |
path: ".asset/" | |
retention-days: 5 |