Skip to content
Merged
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
4 changes: 3 additions & 1 deletion .github/linters/.lycheeignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Dead irrelevant path in pkgdown/favicon
http://svgjs.dev/svgjs
# Path to RSPM yet to be derived
https://packagemanager.posit.co/cran/$%7B%7Bmatrix.config.date
https://packagemanager.posit.co/cran/\$
# Paths to workflows yet to be derived
https://raw.githubusercontent.com/NovoNordisk-OpenSource/r.workflows/\$
2 changes: 1 addition & 1 deletion .github/linters/.mega-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ DISABLE_LINTERS:
ADDITIONAL_EXCLUDED_DIRECTORIES:
- dev
REPOSITORY_KICS_ARGUMENTS: "--exclude-queries 555ab8f9-2001-455e-a077-f2d0f41e2fb9"
SPELL_LYCHEE_ARGUMENTS: "--exclude-path man/figures --exclude-path docs --exclude-path pkgdown/favicon"
SPELL_LYCHEE_ARGUMENTS: "--exclude-path man/figures --exclude-path docs --exclude-path pkgdown/favicon --exclude-path .lycheeignore --exclude-path .github/linters/.lycheeignore"
SPELL_LYCHEE_FILE_EXTENSIONS:
- "*"
SPELL_CSPELL_ANALYZE_FILE_NAMES: false
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check_nn_versions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
- name: Install dependencies
run: >
options(
repos = c(CRAN = "https://packagemanager.posit.co/cran/${{matrix.config.date }}")
repos = c(CRAN = "https://packagemanager.posit.co/cran/${{matrix.config.date}}")
)

install.packages(c("rcmdcheck", "pak"), Ncpus = parallel::detectCores()-1)
Expand Down
23 changes: 18 additions & 5 deletions .github/workflows/megalinter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,26 @@ jobs:
- name: Copy linting config from r.workflows/main
shell: bash
run: |
curl --output .mega-linter.yml https://raw.githubusercontent.com/NovoNordisk-OpenSource/r.workflows/main/.github/linters/.mega-linter.yml
curl --output .lintr https://raw.githubusercontent.com/NovoNordisk-OpenSource/r.workflows/main/.github/linters/.lintr
curl --output .lycheeignore https://raw.githubusercontent.com/NovoNordisk-OpenSource/r.workflows/main/.github/linters/.lycheeignore
echo ===========
echo "$GITHUB_REPOSITORY"
echo "$GITHUB_HEAD_REF"
echo "$GITHUB_REF_NAME"
echo ===========
if [ "$GITHUB_REPOSITORY" = "NovoNordisk-OpenSource/r.workflows" ]; then
workflow_branch="${GITHUB_HEAD_REF:-$GITHUB_REF_NAME}"
echo =========
echo Using "${workflow_branch}"
echo =========
else
workflow_branch="main"
fi
curl --output .mega-linter.yml "https://raw.githubusercontent.com/NovoNordisk-OpenSource/r.workflows/${workflow_branch}/.github/linters/.mega-linter.yml"
curl --output .lintr "https://raw.githubusercontent.com/NovoNordisk-OpenSource/r.workflows/${workflow_branch}/.github/linters/.lintr"
curl --output .lycheeignore "https://raw.githubusercontent.com/NovoNordisk-OpenSource/r.workflows/${workflow_branch}/.github/linters/.lycheeignore"
Comment thread
akselthomsen marked this conversation as resolved.
if [ -e "inst/WORDLIST" ]; then
curl --output .cspell.json https://raw.githubusercontent.com/NovoNordisk-OpenSource/r.workflows/main/.github/linters/.cspell-wordlist.json
curl --output .cspell.json "https://raw.githubusercontent.com/NovoNordisk-OpenSource/r.workflows/${workflow_branch}/.github/linters/.cspell-wordlist.json"
else
curl --output .cspell.json https://raw.githubusercontent.com/NovoNordisk-OpenSource/r.workflows/main/.github/linters/.cspell.json
curl --output .cspell.json "https://raw.githubusercontent.com/NovoNordisk-OpenSource/r.workflows/${workflow_branch}/.github/linters/.cspell.json"
fi
- name: MegaLinter
id: ml
Expand Down
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: r.workflows
Title: R package workflows
Version: 0.0.1.9001
Version: 0.0.1.9002
Authors@R: c(
person("Cervan", "Girard", , "cgid@novonordisk.com", role = c("aut", "cre")),
person("Aksel", "Thomsen", , "oath@novonordisk.com", role = c("aut"))
Expand Down