Increase timeout for fetch-artifacts.sh to 1 minute #77
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: 'Quality Monitor' | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| jobs: | |
| build: | |
| runs-on: [ubuntu-latest] | |
| name: Create reports | |
| steps: | |
| - name: Checkout project | |
| uses: actions/checkout@v6 | |
| - name: Set up JDK | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: 'temurin' | |
| java-version: 25 | |
| check-latest: true | |
| cache: 'maven' | |
| - name: Set up Maven | |
| uses: stCarolas/setup-maven@v5 | |
| with: | |
| maven-version: 3.9.14 | |
| - name: Check if quality monitor reports mutation coverage | |
| run: | | |
| FILE='.github/quality-monitor.json' | |
| PATTERN='target/pit-reports/mutations.xml' | |
| if [ -f "$FILE" ]; then | |
| if grep -q "$PATTERN" "$FILE"; then | |
| echo "PIT=-Ppit" >> "$GITHUB_ENV" | |
| fi | |
| fi | |
| - name: Build with Maven | |
| env: | |
| PIT: ${{ env.PIT }} | |
| BROWSER: chrome-container | |
| run: | | |
| mvn -V --color always -ntp clean verify $PIT -Pci | tee maven.log | |
| if [ "${PIPESTATUS[0]}" != "0" ]; then | |
| exit 1; | |
| fi | |
| mv -fv maven.log target/maven.log | |
| rm -rf target/tmp | |
| - name: Write PR number | |
| run: echo '${{ github.event.pull_request.number }}' > pr-number.txt | |
| - name: Upload Quality Reports | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: quality-reports | |
| path: | | |
| pr-number.txt | |
| **/target/**/*.json | |
| **/target/**/*.xml | |
| **/target/**/*.log | |