Skip to content

Merge pull request #17 from poissonconsulting/dependabot/github_actio… #56

Merge pull request #17 from poissonconsulting/dependabot/github_actio…

Merge pull request #17 from poissonconsulting/dependabot/github_actio… #56

Workflow file for this run

on:
push:
branches:
- main
- master
- dev
pull_request:
branches:
- main
- master
- dev
schedule:
- cron: '0 8 * * 0'
name: R-CMD-check
jobs:
R-CMD-check:
if: "!contains(github.event.head_commit.message, 'skip ci')"
runs-on: macOS-latest
timeout-minutes: 60
env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
GITHUB_PAT: ${{ secrets.PRIVATE_ACTIONS_PAT }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-r@master
- name: Install dependencies
run: |
install.packages(c("remotes", "rcmdcheck"))
remotes::install_deps(dependencies = TRUE)
shell: Rscript {0}
- name: Check
run: rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "error")
shell: Rscript {0}
- name: action-slack
if: failure()
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
uses: 8398a7/[email protected]
with:
status: ${{ job.status }}
author_name: "github action: ${{github.workflow}}"
fields: repo, ref, commit, author, message