Skip to content

Use IDR workflows #134

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 10 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 0 additions & 67 deletions .github/workflows/build_docker.yaml

This file was deleted.

81 changes: 81 additions & 0 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
---
name: Check 🛠

on:
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review
branches:
- main
- develop
push:
branches:
- main
- develop
workflow_dispatch:

jobs:
audit:
name: Audit Dependencies 🕵️‍♂️
uses: insightsengineering/r.pkg.template/.github/workflows/audit.yaml@main
r-cmd:
name: R CMD Check 🧬
uses: insightsengineering/r.pkg.template/.github/workflows/build-check-install.yaml@main
secrets:
REPO_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
additional-env-vars: |
CMDSTAN=/root/.cmdstan
CMDSTAN_PATH=/root/.cmdstan
CMDSTANR_NO_VER_CHECK=true
coverage:
name: Coverage 📔
uses: insightsengineering/r.pkg.template/.github/workflows/test-coverage.yaml@main
secrets:
REPO_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
additional-env-vars: |
CMDSTAN=/root/.cmdstan
CMDSTAN_PATH=/root/.cmdstan
CMDSTANR_NO_VER_CHECK=true
linter:
if: github.event_name == 'pull_request'
name: SuperLinter 🦸‍♀️
uses: insightsengineering/r.pkg.template/.github/workflows/linter.yaml@main
roxygen:
name: Roxygen 🅾
uses: insightsengineering/r.pkg.template/.github/workflows/roxygen.yaml@main
secrets:
REPO_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
auto-update: true
gitleaks:
name: gitleaks 💧
uses: insightsengineering/r.pkg.template/.github/workflows/gitleaks.yaml@main
spelling:
if: github.event_name == 'pull_request'
name: Spell Check 🆎
uses: insightsengineering/r.pkg.template/.github/workflows/spelling.yaml@main
links:
if: github.event_name == 'pull_request'
name: Check URLs 🌐
uses: insightsengineering/r.pkg.template/.github/workflows/links.yaml@main
version:
name: Version Check 🏁
uses: insightsengineering/r.pkg.template/.github/workflows/version.yaml@main
licenses:
name: License Check 🃏
uses: insightsengineering/r.pkg.template/.github/workflows/licenses.yaml@main
style:
if: github.event_name == 'pull_request'
name: Style Check 👗
uses: insightsengineering/r.pkg.template/.github/workflows/style.yaml@main
with:
auto-update: true
grammar:
if: github.event_name == 'pull_request'
name: Grammar Check 🔤
uses: insightsengineering/r.pkg.template/.github/workflows/grammar.yaml@main
48 changes: 48 additions & 0 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
name: Docs 📚

on:
push:
branches:
- main
- develop
paths:
- "inst/templates/**"
- "_pkgdown.y[a]ml"
- DESCRIPTION
- "**.md"
- "**.Rmd"
- "man/**"
- "LICENSE.*"
- NAMESPACE
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review
branches:
- main
- develop
paths:
- "inst/templates/**"
- "_pkgdown.y[a]ml"
- DESCRIPTION
- "**.md"
- "**.Rmd"
- "man/**"
- "LICENSE.*"
- NAMESPACE
workflow_dispatch:

jobs:
docs:
name: Pkgdown Docs 📚
uses: insightsengineering/r.pkg.template/.github/workflows/pkgdown.yaml@main
secrets:
REPO_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
additional-env-vars: |
CMDSTAN=/root/.cmdstan
CMDSTAN_PATH=/root/.cmdstan
CMDSTANR_NO_VER_CHECK=true
57 changes: 0 additions & 57 deletions .github/workflows/on_push_pull.yaml

This file was deleted.

39 changes: 39 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
name: Release 🎈

on:
push:
tags:
- "v*"
workflow_dispatch:

jobs:
build:
name: Build package 🎁
needs: release
uses: insightsengineering/r.pkg.template/.github/workflows/build-check-install.yaml@main
secrets:
REPO_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
skip-r-cmd-check: true
skip-r-cmd-install: true
additional-env-vars: |
CMDSTAN=/root/.cmdstan
CMDSTAN_PATH=/root/.cmdstan
CMDSTANR_NO_VER_CHECK=true
docs:
name: Pkgdown Docs 📚
needs: release
uses: insightsengineering/r.pkg.template/.github/workflows/pkgdown.yaml@main
secrets:
REPO_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
additional-env-vars: |
CMDSTAN=/root/.cmdstan
CMDSTAN_PATH=/root/.cmdstan
CMDSTANR_NO_VER_CHECK=true
release:
name: Create release 🎉
uses: insightsengineering/r.pkg.template/.github/workflows/release.yaml@main
permissions:
contents: write
3 changes: 2 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Authors@R: c(
person("F. Hoffmann-La Roche AG", role = c("cph", "fnd"))
)
Description: TODO
Language: en-US
License: Apache License (>= 2)
Encoding: UTF-8
Roxygen: list(markdown = TRUE)
Expand All @@ -21,7 +22,7 @@ Imports:
statmod,
Matrix,
jinjar
Suggests:
Suggests:
testthat (>= 3.0.0)
Config/testthat/edition: 3
Collate:
Expand Down
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# jmpost 0.0.0.9000

* In development
Loading