diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index 2c0ad08..fdc179f 100644 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -23,8 +23,8 @@ jobs: fail-fast: false matrix: config: - - {os: macOS-latest, r: 'release'} - - {os: windows-latest, r: 'release'} + - {os: macos-latest, r: 'release'} + - {os: windows-latest, r: 'release'} - {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'} - {os: ubuntu-latest, r: 'release'} - {os: ubuntu-latest, r: 'oldrel-1'} @@ -35,15 +35,15 @@ jobs: steps: # Checkout the repository. - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 # Setup `pandoc`. - name: Setup pandoc - uses: r-lib/actions/setup-pandoc@v1 + uses: r-lib/actions/setup-pandoc@v2 # Setup `R`. - name: Setup R - uses: r-lib/actions/setup-r@v1 + uses: r-lib/actions/setup-r@v2 with: r-version: ${{ matrix.config.r }} http-user-agent: ${{ matrix.config.http-user-agent }} @@ -51,24 +51,13 @@ jobs: # Setup `powerly` dependencies and extras. - name: Install dependencies - uses: r-lib/actions/setup-r-dependencies@v1 + uses: r-lib/actions/setup-r-dependencies@v2 with: - extra-packages: rcmdcheck + extra-packages: any::rcmdcheck + needs: check # Perform the CRAN check. - name: Check package - uses: r-lib/actions/check-r-package@v1 - - # Show `testthat` output. - - name: Show testthat output - if: always() - run: find check -name 'testthat.Rout*' -exec cat '{}' \; || true - shell: bash - - # Upload job results on failure. - - name: Upload check results - if: failure() - uses: actions/upload-artifact@main + uses: r-lib/actions/check-r-package@v2 with: - name: ${{ runner.os }}-r${{ matrix.config.r }}-results - path: check + upload-snapshots: true