Skip to content

Commit

Permalink
Merge pull request #60 from RMI-PACTA/ci/54-use-rmi-actions
Browse files Browse the repository at this point in the history
Add action to use central RMI actions
  • Loading branch information
AlexAxthelm authored Mar 11, 2024
2 parents 3091695 + 9aa2b7d commit 98e5f97
Show file tree
Hide file tree
Showing 11 changed files with 36 additions and 205 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/R.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
# This example file will enable R language checks on push or PR to the main
# branch.
#
# Note the @main in `uses:` on the last line. This will call the latest version
# of the workflow from the `main` brnach in the RMI-PACTA/actions repo. You can
# also specify a tag from that repo, or a commit SHA to pin action versions.
on:
push:
branches:
- main
pull_request:

name: R

jobs:
R-package:
name: R Package Checks
uses: RMI-PACTA/actions/.github/workflows/R.yml@main
12 changes: 0 additions & 12 deletions .github/workflows/build-Docker-image-nightly.yml

This file was deleted.

12 changes: 0 additions & 12 deletions .github/workflows/build-Docker-image-on-push-to-main.yml

This file was deleted.

37 changes: 0 additions & 37 deletions .github/workflows/build-Docker-image-on-push-to-pr.yml

This file was deleted.

67 changes: 0 additions & 67 deletions .github/workflows/build-and-push-Docker-image.yml

This file was deleted.

32 changes: 0 additions & 32 deletions .github/workflows/check-R-sysdeps.yml

This file was deleted.

13 changes: 13 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
on:
pull_request:
push:
branches: [main]
schedule:
- cron: '0 0 * * 1,2,3,4,5'

name: Docker

jobs:
docker:
name: Docker actions
uses: RMI-PACTA/actions/.github/workflows/docker.yml@main
32 changes: 0 additions & 32 deletions .github/workflows/lint-package.yaml

This file was deleted.

11 changes: 0 additions & 11 deletions .github/workflows/run-hadolint.yml

This file was deleted.

1 change: 1 addition & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ Imports:
rlang,
withr
Suggests:
RSQLite,
rstudioapi,
testthat (>= 3.0.0)
Config/testthat/edition: 3
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,17 @@ WORKDIR /home/runner-workflow-factset
# install system dependencies
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
libcurl4-openssl-dev=7.* \
libicu-dev=70.* \
libpq-dev=14.* \
&& chmod -R a+rwX /root \
&& rm -rf /var/lib/apt/lists/*

# set frozen CRAN repo
ARG CRAN_REPO="https://packagemanager.posit.co/cran/__linux__/jammy/2023-10-30"
ARG CRAN_REPO="https://packagemanager.posit.co/cran/2024-03-01"
RUN echo "options(repos = c(CRAN = '$CRAN_REPO'), pkg.sysreqs = FALSE)" >> "${R_HOME}/etc/Rprofile.site" \
# install packages for dependency resolution and installation
&& Rscript -e "install.packages(c('pak', 'jsonlite'))"
&& Rscript -e "install.packages(c('pak'))"

# Install R deopendencies
COPY DESCRIPTION /workflow.factset/DESCRIPTION
Expand Down

0 comments on commit 98e5f97

Please sign in to comment.