From c6bbf157d36a72937dd4d366579d6427bef3f4a1 Mon Sep 17 00:00:00 2001 From: LamGC Date: Sat, 12 Sep 2020 23:50:20 +0800 Subject: [PATCH] =?UTF-8?q?[Add]=20Project=20=E6=B7=BB=E5=8A=A0=20Github?= =?UTF-8?q?=20Action=20=E4=BB=A5=E7=A1=AE=E5=AE=9A=E6=8F=90=E4=BA=A4?= =?UTF-8?q?=E5=8D=95=E5=85=83=E6=B5=8B=E8=AF=95=E7=8A=B6=E5=86=B5;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [Add] .github/workflows/maven-test.yml 添加用于测试的 Action 配置; --- .github/workflows/maven-test.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/maven-test.yml diff --git a/.github/workflows/maven-test.yml b/.github/workflows/maven-test.yml new file mode 100644 index 0000000..708dd1a --- /dev/null +++ b/.github/workflows/maven-test.yml @@ -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