Skip to content

feat: 链接附件时给附件添加个条目标签 #12

feat: 链接附件时给附件添加个条目标签

feat: 链接附件时给附件添加个条目标签 #12

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: Server CI
# Controls when the workflow will run
on:
push:
branches:
- master
paths:
- "**"
- '!console/**'
- "!**.md"
pull_request:
branches:
- master
- release-*
paths:
- "**"
- '!console/**'
- "!**.md"
jobs:
checkConsole:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
distribution: 'temurin'
cache: 'gradle'
java-version: 17
- name: Make gradlew executable
run: chmod +x ./gradlew
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
distribution: 'temurin'
cache: 'gradle'
java-version: 17
- name: Make gradlew executable
run: chmod +x ./gradlew
- name: Run tests
run: ./gradlew test
- name: Upload build dir if current step run failed.
uses: actions/upload-artifact@v3.1.2
if: ${{ failure() }}
with:
# Artifact name
name: testBuild
# A file, directory or wildcard pattern that describes what to upload
path: /home/runner/work/plugin-mikan/plugin-mikan/build
# The desired behavior if no files are found using the provided path.
if-no-files-found: warn
# Duration after which artifact will expire in days. 0 means using default retention.Minimum 1 day. Maximum 90 days unless changed from the repository settings page.
retention-days: 7