Generate the application with the refs/tags/v3.3.0 version #58
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- uses: graalvm/setup-graalvm@v1 | |
with: | |
version: '22.3.0' | |
distribution: 'graalvm' | |
java-version: '17' | |
components: 'native-image' | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
- 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 |