Skip to content

Fix y_scale_breaks

Fix y_scale_breaks #88

Workflow file for this run

name: Unit Tests
on:
push:
branches:
- main
- develop
pull_request:
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Before Install
run: |
export CONTAINER=$(docker run \
--env CODECOV_TOKEN=${CODECOV_TOKEN} \
-d paneldata/soep-plots tail -f /dev/null)
docker cp DESCRIPTION ${CONTAINER}:/opt/soep-plots/
docker cp NAMESPACE ${CONTAINER}:/opt/soep-plots/
docker cp R ${CONTAINER}:/opt/soep-plots/
docker cp tests ${CONTAINER}:/opt/soep-plots/
echo "CONTAINER=${CONTAINER}" >> $GITHUB_ENV
- name: Install
run: |
docker exec ${CONTAINER} Rscript -e 'install.packages("remotes")'
docker exec ${CONTAINER} Rscript -e 'remotes::install_github("rstudio/renv")'
docker exec ${CONTAINER} Rscript -e 'renv::restore(packages = "renv")'
docker exec ${CONTAINER} Rscript -e 'devtools::install(upgrade="always")'
docker exec ${CONTAINER} Rscript -e 'devtools::install(upgrade="always", dependencies="Suggests")'
- name: Test
run: docker exec ${CONTAINER} Rscript -e "devtools::test()"
- name: coverage
run: docker exec ${CONTAINER} Rscript -e "library(covr); codecov()"