R Java Live Integration Tests #3
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
| # GitHub Actions workflow to run the long-running live Java download tests. | |
| # This test downloads, installs, checks, and clears every supported Java version. | |
| # It is run on a schedule to avoid slowing down pull request checks. | |
| name: R Java Live Integration Tests | |
| on: | |
| # Allows you to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| schedule: | |
| # Runs at 00:00 UTC on Saturday. | |
| # This corresponds to 1:00 AM in Berlin (CET, UTC+1) during standard time, | |
| # and 2:00 AM (CEST, UTC+2) during daylight saving time. | |
| - cron: '0 0 * * 6' | |
| jobs: | |
| run-live-tests: | |
| name: ${{ matrix.config.os }} (R ${{ matrix.config.r-version }}) | |
| runs-on: ${{ matrix.config.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| config: | |
| - {os: windows-latest, r-version: 'release'} | |
| - {os: macos-latest, r-version: 'release'} | |
| - {os: ubuntu-latest, r-version: 'release'} | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Set up R | |
| uses: r-lib/actions/setup-r@v2 | |
| with: | |
| r-version: ${{ matrix.config.r-version }} | |
| use-public-rspm: true | |
| - name: Set up Pandoc | |
| uses: r-lib/actions/setup-pandoc@v2 | |
| - name: Install package dependencies | |
| uses: r-lib/actions/setup-r-dependencies@v2 | |
| - name: Run live Java download and install tests | |
| env: | |
| # This environment variable enables the specific test to run | |
| RUN_JAVA_DOWNLOAD_TESTS: "true" | |
| run: | | |
| # Use testthat::test_file() directly to avoid the devtools deprecation warning | |
| testthat::test_file('tests/testthat/test-java_full-cycle-live.R') | |
| shell: Rscript {0} |