build(deps): bump the actions group with 9 updates (#19) #52
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| jobs: | |
| test: | |
| name: Test & Coverage | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| - name: Set up Gradle | |
| uses: gradle/actions/setup-gradle@v6 | |
| with: | |
| cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }} | |
| - name: Cache Python standalone | |
| uses: actions/cache@v6 | |
| with: | |
| path: ~/.python-embed | |
| key: python-standalone-${{ runner.os }}-${{ hashFiles('python-embed-gradle-plugin/src/**') }} | |
| - name: Make gradlew executable | |
| run: chmod +x gradlew | |
| - name: Run tests | |
| run: ./gradlew test jacocoTestReport | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v7 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| fail_ci_if_error: false | |
| - name: Upload test reports | |
| if: failure() | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: test-reports | |
| path: | | |
| **/build/reports/ | |
| **/hs_err_pid*.log | |
| retention-days: 7 | |
| examples: | |
| name: Run Examples | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| - name: Set up Gradle | |
| uses: gradle/actions/setup-gradle@v6 | |
| with: | |
| cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }} | |
| - name: Cache Python standalone | |
| uses: actions/cache@v6 | |
| with: | |
| path: ~/.python-embed | |
| key: python-standalone-${{ runner.os }}-${{ hashFiles('python-embed-gradle-plugin/src/**') }} | |
| - name: Make gradlew executable | |
| run: chmod +x gradlew | |
| - name: Run all examples | |
| run: ./gradlew -p python-embed-examples runAllExamples | |
| - name: Upload failure logs | |
| if: failure() | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: example-failure-logs | |
| path: | | |
| **/build/reports/ | |
| **/hs_err_pid*.log | |
| retention-days: 7 |