mirror of
https://github.com/vran-dev/databasir.git
synced 2025-08-10 11:35:01 +08:00
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:
43
.github/workflows/auto-check.yml
vendored
Normal file
43
.github/workflows/auto-check.yml
vendored
Normal 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
|
Reference in New Issue
Block a user