Skip to content

Commit

Permalink
Changing workflow to test
Browse files Browse the repository at this point in the history
  • Loading branch information
dean-breed committed May 31, 2022
1 parent 7bef2e5 commit 90de146
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,31 @@ jobs:
- uses: r-lib/actions/setup-r@master
with:
r-version: 'release'
- uses: r-lib/actions/setup-pandoc@master

- name: Query dependencies
run: |
install.packages('data.table')
install.packages('dotenv')
install.packages('httr')
install.packages('dplyr')
install.packages('rstudioapi')
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: Cache R packages
uses: actions/cache@v1
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 dependencies
run: |
remotes::install_deps(dependencies = TRUE)
shell: Rscript {0}

- name: Run budget data script
run: |
source("iati_marker.R")
Expand Down

0 comments on commit 90de146

Please sign in to comment.