feat:update mail template & add ut (#63)

* feat:update mail template & add ut

* fix: error workflow yml

* feat: add core:check
This commit is contained in:
vran
2022-03-25 17:26:05 +08:00
committed by GitHub
parent 492b1cd5d9
commit 0db5ad2153
20 changed files with 440 additions and 32 deletions

43
.github/workflows/auto-check.yml vendored Normal file
View File

@@ -0,0 +1,43 @@
name: check
on: pull_request
jobs:
checkstyle:
name: Checkstyle
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- uses: reviewdog/action-setup@v1
with:
reviewdog_version: latest
- name: download checkstyle
run: curl -o checkstyle.jar -L https://github.com/checkstyle/checkstyle/releases/download/checkstyle-9.3/checkstyle-9.3-all.jar
- name: checkstyle
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: java -jar checkstyle.jar -c config/checkstyle/checkstyle.xml -f xml . | reviewdog -f=checkstyle -name="Checkstyle Report" -reporter="github-check" -fail-on-error=true -level="error" -filter-mode=nofilter
mysql-integration-test:
runs-on: ubuntu-latest
services:
mysql:
image: mysql:5.7
ports:
- 3306:3306
env:
MYSQL_ROOT_PASSWORD: "123456"
MYSQL_DATABASE: databasir
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: '11'
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file
- name: Gradle Permission Grant
run: chmod +x ./gradlew
- name: Gradle Test
run: ./gradlew api:check core:check