Skip to content

Commit

Permalink
Update r.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Prof-ThiagoOliveira authored Dec 16, 2023
1 parent d7ceb90 commit 3600506
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/r.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# Workflow derived from https://github.com/r-lib/actions/tree/master/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [main, master]
Expand Down Expand Up @@ -29,21 +27,21 @@ jobs:
R_KEEP_PKG_SOURCE: yes

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3 # Updated to use the latest version

- uses: r-lib/actions/setup-pandoc@v1
- uses: r-lib/actions/setup-pandoc@v2 # Assuming v2 is available and updated for Node16

- uses: r-lib/actions/setup-r@v1
- uses: r-lib/actions/setup-r@v2 # Updated to v2, ensure this version is compatible with Node16
with:
r-version: ${{ matrix.config.r }}
http-user-agent: ${{ matrix.config.http-user-agent }}
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v1
- uses: r-lib/actions/setup-r-dependencies@v2 # Updated to v2
with:
extra-packages: rcmdcheck

- uses: r-lib/actions/check-r-package@v2 # Updated to v2 for potential improvements
- uses: r-lib/actions/check-r-package@v2

- name: Show testthat output
if: always()
Expand All @@ -52,7 +50,7 @@ jobs:

- name: Upload check results
if: failure()
uses: actions/upload-artifact@v2 # Updated to v2 for the latest features
uses: actions/upload-artifact@v3 # Updated to v3
with:
name: ${{ runner.os }}-r${{ matrix.config.r }}-results
path: check

0 comments on commit 3600506

Please sign in to comment.