Skip to content

Commit

Permalink
Merge pull request #53 from miraisolutions/feature/switch-to-rlib-act…
Browse files Browse the repository at this point in the history
…ions-v2

Update to r-lib/actions v2
  • Loading branch information
Chargothrond authored Aug 16, 2022
2 parents d71251d + 94fc057 commit 21f17ee
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 29 deletions.
35 changes: 6 additions & 29 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,41 +26,18 @@ jobs:
steps:
- uses: actions/checkout@v2

- uses: r-lib/actions/setup-r@master
- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
http-user-agent: ${{ matrix.config.http-user-agent }}
use-public-rspm: true

- uses: r-lib/actions/setup-pandoc@master
- uses: r-lib/actions/setup-pandoc@v2

- name: Query dependencies
run: |
install.packages('remotes')
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version")
shell: Rscript {0}

- name: Restore R package cache
uses: actions/cache@v2
- name: Install and cache dependencies
uses: r-lib/actions/setup-r-dependencies@v2
with:
path: ${{ env.R_LIBS_USER }}
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}
restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-

- name: Install system dependencies
if: runner.os == 'Linux'
run: |
while read -r cmd
do
eval sudo $cmd
done < <(Rscript -e 'writeLines(remotes::system_requirements("ubuntu", "20.04"))')
- name: Install dependencies
run: |
remotes::install_deps(dependencies = TRUE)
remotes::install_cran("rcmdcheck")
shell: Rscript {0}
extra-packages: any::rcmdcheck

- name: Install Meld
if: runner.os == 'Linux'
Expand All @@ -72,4 +49,4 @@ jobs:
uses: GabrielBB/xvfb-action@v1
with:
run: |
Rscript -e "rcmdcheck::rcmdcheck(args = '--no-manual', error_on = 'error')"
Rscript -e "rcmdcheck::rcmdcheck(args = '--no-manual', error_on = 'warning')"
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# compareWith (development version)

- Add support for comparison between arbitrary Git revisions (#46, initial proposal from @statnmap in #37).
- Maintenance of Continuous Integration GitHub Actions workflow (#53).

# compareWith 0.0.1

Expand Down

0 comments on commit 21f17ee

Please sign in to comment.