Skip to content

Merge pull request #42 from schuettl/patch-1 #53

Merge pull request #42 from schuettl/patch-1

Merge pull request #42 from schuettl/patch-1 #53

Workflow file for this run

name: R CI release
on: [push, pull_request]
jobs:
build:
runs-on: Ubuntu-latest
strategy:
matrix:
include:
- name: latest
cntr: uscbiostats/slurmr:rcmdcheck
steps:
- uses: actions/checkout@v2
- name: Setting up the environment
run: docker pull ${{ matrix.cntr }}
- name: Running the check
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: |
cd docker
make check
# # COVERAGE FOR THE FUTURE (RIGHT NOW WE HAVE SSH PROBLEMS)
# - name: Coverage
# env:
# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
# run: |
# cd docker
# chmod 600 id_rsa
# docker run \
# -e GITHUB_ACTION=$GITHUB_ACTION \
# -e GITHUB_REPOSITORY=$GITHUB_REPOSITORY \
# -e GITHUB_REF=$GITHUB_REF \
# -e GITHUB_HEAD_REF=$GITHUB_HEAD_REF \
# -e GITHUB_RUN_ID=$GITHUB_RUN_ID \
# -e GITHUB_SHA=$GITHUB_SHA \
# -e CODECOV_TOKEN=$CODECOV_TOKEN --detach --publish 10022:22 \
# -v$(PWD)/..:/home/xenon/slurmR -w/home/xenon uscbiostats/slurmr:interactive
# echo "Waiting a few seconds..." & sleep 5 && \
# ssh -p 10022 -i id_rsa UserKnownHostsFile=/github/home/.ssh/known_hosts \
# xenon@localhost 'cd /home/slurmr-test/ && Rscript -e "covr::codecov(\"/home/xenon/slurmR\", quiet = FALSE)"'