From 67d3423b16b5acc2e8c7875ec2e5641726ec2ea5 Mon Sep 17 00:00:00 2001 From: Dongjoon Hyun Date: Tue, 28 Apr 2020 13:22:43 +0900 Subject: [PATCH] [SPARK-31589][INFRA] Use `r-lib/actions/setup-r` in GitHub Action This PR aims to use `r-lib/actions/setup-r` because it's more stable and maintained by 3rd party. This will recover the current outage. In addition, this will be more robust in the future. As of now, this is tested via https://github.com/dongjoon-hyun/spark/pull/17 . No. Pass the GitHub Actions, especially `Linter R` and `Generate Documents`. Closes #28382 from dongjoon-hyun/SPARK-31589. Authored-by: Dongjoon Hyun Signed-off-by: HyukjinKwon (cherry picked from commit 2d3e9601b58fbe33aeedb106be7e2a1fafa2e1fd) Signed-off-by: HyukjinKwon --- .github/workflows/branch-2.4.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/branch-2.4.yml b/.github/workflows/branch-2.4.yml index 482a4a8c7c4a..77e8f27d35b8 100644 --- a/.github/workflows/branch-2.4.yml +++ b/.github/workflows/branch-2.4.yml @@ -88,12 +88,12 @@ jobs: - uses: actions/setup-java@v1 with: java-version: '1.8' - - name: install R + - uses: r-lib/actions/setup-r@v1 + with: + r-version: '3.6.2' + - name: install lib run: | - echo 'deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/' | sudo tee -a /etc/apt/sources.list - curl -sL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xE298A3A825C0D65DFD57CBB651716619E084DAB9" | sudo apt-key add - sudo apt-get update - sudo apt-get install -y r-base r-base-dev libcurl4-openssl-dev + sudo apt-get install -y libcurl4-openssl-dev - name: install R packages run: | sudo Rscript -e "install.packages(c('curl', 'xml2', 'httr', 'devtools', 'testthat', 'knitr', 'rmarkdown', 'roxygen2', 'e1071', 'survival'), repos='https://cloud.r-project.org/')"