Generated by JHipster v7.9.4 and Svelte blueprint v1.1.0 #65
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: | |
svelte-hipster: | |
name: Svelte Hipster | |
runs-on: ubuntu-latest | |
timeout-minutes: 40 | |
env: | |
SPRING_OUTPUT_ANSI_ENABLED: DETECT | |
SPRING_JPA_SHOW_SQL: false | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '16.x' | |
- uses: actions/setup-java@v1 | |
with: | |
java-version: '11.x' | |
- name: Stop MySQL server | |
run: sudo /etc/init.d/mysql stop | |
- name: Install node.js packages | |
run: npm ci | |
- name: Run backend test | |
run: | | |
chmod +x mvnw | |
./mvnw -ntp clean verify -P-webpack | |
- name: Run frontend test | |
run: npm run test | |
- name: Sonar analysis | |
run: ./mvnw initialize sonar:sonar -Dsonar.organization=jhipster -Dsonar.projectKey=jhipster_jhipster-sample-app-svelte -Dsonar.sources=src/main/ -Dsonar.tests=src/test/ -Dsonar.host.url=https://sonarcloud.io | |
env: | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |