Skip to content

Generate the application with the refs/tags/v3.4.0 version #64

Generate the application with the refs/tags/v3.4.0 version

Generate the application with the refs/tags/v3.4.0 version #64

Workflow file for this run

name: Application CI
on: [push, pull_request]
jobs:
pipeline:
name: JHipster Sample Application
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.pull_request.title, '[skip ci]') && !contains(github.event.pull_request.title, '[ci skip]')"
timeout-minutes: 40
env:
JHI_DISABLE_WEBPACK_LOGS: true
NG_CLI_ANALYTICS: false
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- uses: actions/setup-java@v4
with:
distribution: 'graalvm'
java-version: '21'
- name: Stop MySQL server
run: sudo /etc/init.d/mysql stop
- name: Install node.js packages
run: |
npm ci
- name: Run backend test
run: ./mvnw -ntp clean test -P-webpack
- name: Run frontend test
run: npm run test
- name: Analyze code with SonarQube
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: |
if [[ -n "$SONAR_TOKEN" && "$GITHUB_REPOSITORY" = "jhipster/jhipster-sample-app-quarkus" && "$GITHUB_REF" = "refs/heads/main" ]]; then
./mvnw -ntp initialize sonar:sonar -Dsonar.organization=jhipster -Dsonar.projectKey=jhipster_jhipster-sample-app-quarkus -Dsonar.host.url=https://sonarcloud.io
fi
- name: Package application
run: ./mvnw -ntp package -Pprod -DskipTests
- name: Build Native Image and run Integration tests
run: ./mvnw -ntp verify -Pnative