diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml new file mode 100644 index 0000000..976a823 --- /dev/null +++ b/.github/workflows/R-CMD-check.yaml @@ -0,0 +1,35 @@ +on: + push: + branches: [main, master] + pull_request: + branches: [main, master] + +name: R-CMD-check + +jobs: + R-CMD-check: + runs-on: ubuntu-latest + + env: + GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} + R_KEEP_PKG_SOURCE: yes + + steps: + - uses: actions/checkout@v4 + + - uses: r-lib/actions/setup-pandoc@v2 + + - uses: r-lib/actions/setup-r@v2 + with: + r-version: 'release' + use-public-rspm: true + + - uses: r-lib/actions/setup-r-dependencies@v2 + with: + cache: "always" + extra-packages: any::rcmdcheck + needs: check + + - uses: r-lib/actions/check-r-package@v2 + with: + upload-snapshots: true diff --git a/Dockerfile b/Dockerfile index 31e76cd..38e7da2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,6 @@ # Author: Michelle Golchert -FROM inwt/r-batch:3.5.1 +FROM inwt/r-batch:4.5.1 ADD . . + RUN installPackage diff --git a/README.md b/README.md index 3c61c06..692beab 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[![R-CMD-check](https://github.com/INWTlab/mctools/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/INWTlab/mctools/actions/workflows/R-CMD-check.yaml) + The problem -----------