Skip to content

Nhsn indicator

Nhsn indicator #1199

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
#
# See https://github.com/r-lib/actions/tree/master/examples#readme for
# additional example workflows available for the R community.
name: R backfill corrections
on:
push:
branches: [main, prod]
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
branches: [main, prod]
jobs:
build:
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false
defaults:
run:
working-directory: backfill_corrections/delphiBackfillCorrection
steps:
- uses: actions/checkout@v4
- name: Set up R 4.2
uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
r-version: 4.2
- name: Install and cache dependencies
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::rcmdcheck
working-directory: backfill_corrections/delphiBackfillCorrection
upgrade: "TRUE"
- name: Check package
uses: r-lib/actions/check-r-package@v2
with:
working-directory: backfill_corrections/delphiBackfillCorrection
args: 'c("--no-manual", "--test-dir=unit-tests")'
error-on: '"error"'