diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions.yml new file mode 100644 index 000000000..51f114078 --- /dev/null +++ b/.github/workflows/github-actions.yml @@ -0,0 +1,19 @@ + name: Java CI with Maven + on: + push: + branches: [ $default-branch ] + pull_request: + branches: [ $default-branch ] + jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Set up JDK 11 + uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'temurin' + cache: maven + - name: Build with Maven + run: mvn -B -DskipTests package --file pom.xml diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 000000000..c80c402bb --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,22 @@ +pipeline { + agent any + stages { + stage('Build') { +steps { + sh 'mvn -B -DskipTests clean package' +} + } + stage('pmd') { + steps { + sh 'mvn pmd:pmd' + } + } + } + post { + always { + archiveArtifacts artifacts: '**/target/site/**', fingerprint: true + archiveArtifacts artifacts: '**/target/**/*.jar', fingerprint: true + archiveArtifacts artifacts: '**/target/**/*.war', fingerprint: true + } + } + } diff --git a/docs-web/src/main/webapp/src/partial/docs/login.html b/docs-web/src/main/webapp/src/partial/docs/login.html index 822ec9a1f..61ef4e039 100644 --- a/docs-web/src/main/webapp/src/partial/docs/login.html +++ b/docs-web/src/main/webapp/src/partial/docs/login.html @@ -54,11 +54,6 @@ ng-attr-placeholder="{{ 'login.validation_code' | translate }}" ng-model="user.code" /> -
- -
diff --git a/pom.xml b/pom.xml index 2228a3f23..ec5ada919 100644 --- a/pom.xml +++ b/pom.xml @@ -102,6 +102,28 @@ ${org.apache.maven.plugins.maven-jar-plugin.version} + + org.apache.maven.plugins + maven-pmd-plugin + 3.21.2 + + + false + + true + + /mnt/e/practice-answer.xml + + + + + + check + + + + + org.apache.maven.plugins maven-surefire-plugin