mirror of
https://github.com/LamGC/ContentGrabbingJi.git
synced 2025-04-29 22:27:33 +00:00
[Add] Project 添加 Github Action 以确定提交单元测试状况;
[Add] .github/workflows/maven-test.yml 添加用于测试的 Action 配置;
This commit is contained in:
parent
96f9baf5bc
commit
c6bbf157d3
29
.github/workflows/maven-test.yml
vendored
Normal file
29
.github/workflows/maven-test.yml
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
# This workflow will build a Java project with Maven
|
||||
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
|
||||
|
||||
name: Unit test confirmation of commit
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ 3.0.0 ]
|
||||
pull_request:
|
||||
branches: [ 3.0.0 ]
|
||||
|
||||
jobs:
|
||||
buildAndTest:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up JDK 1.8
|
||||
uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: 1.8
|
||||
- name: Set up Redis Server
|
||||
# You may pin to the exact commit or the version.
|
||||
# uses: supercharge/redis-github-action@8dd3c86cd02fabe1bc459d55ba892a9ce91e23c6
|
||||
uses: supercharge/redis-github-action@1.1.0
|
||||
with:
|
||||
# Redis version to use
|
||||
redis-version: latest
|
||||
- name: Build with Maven
|
||||
run: mvn -B test --file pom.xml
|
Loading…
Reference in New Issue
Block a user