[FEAT] test build system
This commit is contained in:
parent
fa96257718
commit
b29d5f49aa
19
.github/workflows/maven.yml
vendored
19
.github/workflows/maven.yml
vendored
@ -14,9 +14,18 @@ on:
|
|||||||
- develop
|
- develop
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
services:
|
||||||
|
db:
|
||||||
|
image: mysql:latest
|
||||||
|
environment:
|
||||||
|
MYSQL_DATABASE: test_neofarm_db
|
||||||
|
MYSQL_ROOT_PASSWORD: base_db_password
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Set up JDK 21
|
- name: Set up JDK 21
|
||||||
@ -25,8 +34,18 @@ jobs:
|
|||||||
java-version: '21'
|
java-version: '21'
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
cache: maven
|
cache: maven
|
||||||
|
- name: validate
|
||||||
|
run: mvn validate
|
||||||
|
- name: compile
|
||||||
|
run: mvn compile
|
||||||
- name: Build with Maven
|
- name: Build with Maven
|
||||||
run: mvn -B package --file pom.xml
|
run: mvn -B package --file pom.xml
|
||||||
|
- name: spot-bug
|
||||||
|
run: mvn spotbugs:check
|
||||||
|
- name: Test SQLite
|
||||||
|
run: mvn test
|
||||||
|
- name: Test my-SQL
|
||||||
|
run: DB_HOST=db -e TEST_E2E_MODE=true mvn test
|
||||||
- name: find the element
|
- name: find the element
|
||||||
run: find . -name "dependency-graph.json"
|
run: find . -name "dependency-graph.json"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user