fix FeedbackHear / migrate to svelte5 (#949) #3194
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: Build | |
on: | |
schedule: | |
- cron: "2 4 * * *" | |
push: | |
branches: | |
- main | |
pull_request: | |
workflow_dispatch: | |
env: | |
MAVEN_ARGS: "--no-transfer-progress --errors --fail-at-end --show-version" | |
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1 # required browsers are installed below | |
jobs: | |
build: | |
name: build and analyse | |
runs-on: ubuntu-20.04 | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'liberica' | |
java-version: 21 | |
cache: 'maven' | |
- name: Install Playwright Browsers (UI tests) | |
run: ./mvnw exec:java -e -D exec.mainClass=com.microsoft.playwright.CLI -D exec.classpathScope="test" -D exec.args="install --with-deps chromium" | |
- name: Build | |
run: ./mvnw -Pcoverage dependency:go-offline clean verify | |
- name: Analyse with SonarCloud | |
if: ${{ github.event_name != 'pull_request' || (github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]') }} | |
run: > | |
./mvnw $MAVEN_CLI_OPTS | |
-Pcoverage | |
sonar:sonar | |
-Dsonar.host.url=https://sonarcloud.io | |
-Dsonar.organization=urlaubsverwaltung | |
-Dsonar.projectKey=urlaubsverwaltung_zeiterfassung | |
-Dsonar.coverage.jacoco.xmlReportPaths=target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml | |
-Dsonar.javascript.lcov.reportPaths=target/js-coverage/lcov.info | |
-Dsonar.javascript.exclusions=**/*.spec.ts,**/*.test.ts,**/*.spec.js,**/*.test.js | |
-Dsonar.eslint.reportPaths=target/js-eslint/report.json | |
-Dsonar.coverage.exclusions=**/*.spec.ts,**/*.test.ts,**/*.spec.js,**/*.test.js | |
-Dsonar.sources=src/main | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
- name: Upload artifacts of failed tests | |
uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: failed-ui-tests | |
path: target/FAILED-* |