Refactor: Move to provenance file and update related tests #1199
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: nf-co2footprint CI | |
| on: | |
| push: | |
| branches: | |
| - '*' | |
| tags-ignore: | |
| - '*' | |
| pull_request: | |
| branches: | |
| - '*' | |
| jobs: | |
| build: | |
| name: Build nf-co2footprint | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| java_version: [17, 23] | |
| steps: | |
| - name: Check environment variables | |
| run: env | sort | |
| - name: Checkout PR branch | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 1 | |
| submodules: true | |
| - name: Setup Java ${{ matrix.java_version }} | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: ${{matrix.java_version}} | |
| architecture: x64 | |
| distribution: 'temurin' | |
| - name: Compile plugin | |
| run: ./gradlew assemble | |
| - name: Execute checks / tests | |
| id: gradle | |
| run: ./gradlew check --no-daemon --info || echo "exit_code=$?" >> $GITHUB_OUTPUT | |
| - name: Upload test and check reports | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: gradle-check-reports_${{ matrix.java_version }} | |
| path: | | |
| **/build/reports/ | |
| **/build/test-results/ | |
| - name: Upload failed file comparisons | |
| if: ${{ steps.gradle.outputs.exit_code }} | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: fails_${{ matrix.java_version }} | |
| path: | | |
| **/build/resources/test/**/failed | |
| - name: Summarize tests results | |
| if: always() | |
| uses: jeantessier/test-summary-action@v1 | |
| - name: Fail if Gradle check failed | |
| if: ${{ steps.gradle.outputs.exit_code }} | |
| run: | | |
| echo "Gradle check failed with exit code `${{ steps.gradle.outputs.exit_code }}`. See GitHub Artifacts for a comprehensive report." | |
| exit ${{ steps.gradle.outputs.exit_code }} |