Add a startDate field for notification survey popup #924
Workflow file for this run
This file contains hidden or 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: Test | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| jobs: | |
| build-and-test: | |
| name: Build & Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: 17 | |
| distribution: temurin | |
| - uses: actions/cache@v4 | |
| with: | |
| path: ~/.m2/repository | |
| key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-maven- | |
| - name: Fetch ES data | |
| run: wget -O src/test/resources/isaac-test-es-data.tar.gz https://cdn.isaaccomputerscience.org/isaac/test/isaac-test-es-data.tar.gz | |
| - name: Build with Maven | |
| run: mvn -B package -DskipTests --file pom.xml | |
| - name: Test with Maven | |
| run: mvn -B verify --file pom.xml | |
| - name: Add coverage to PR | |
| if: github.actor != 'dependabot[bot]' | |
| id: jacoco | |
| uses: madrapps/jacoco-report@v1.6.1 | |
| with: | |
| paths: ${{ github.workspace }}/**/target/site/jacoco-merged-test-coverage-report/jacoco.xml | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| min-coverage-overall: 80 | |
| min-coverage-changed-files: 80 | |
| title: Coverage Report # A title is required for update-comment to work correctly | |
| update-comment: true | |
| pass-emoji: ':white_check_mark:' | |
| fail-emoji: ':x:' | |
| continue-on-error: true # The repository is currently far below the threshold, so we can't enforce this for now |