Skip to content

Commit

Permalink
Merge pull request #577 from lorenzwalthert/issue-576
Browse files Browse the repository at this point in the history
fix new pkgdown version
  • Loading branch information
lorenzwalthert authored Jul 15, 2024
2 parents 637b2ca + ece9b1e commit 07314e1
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 7 deletions.
35 changes: 28 additions & 7 deletions .github/workflows/end-to-end.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,25 +61,46 @@ jobs:
- name: Run pre-commit
run: |
echo 'one' > README.Rmd
echo 'one' >> codemeta.json
echo 'one' > README.md
echo "#' some code\n#'\n#' @param here.\n#' @name somethings\nNULL" > R/test.R # overwrite if anything there
brew install pre-commit
pre-commit install
pre-commit install --install-hooks
echo 'running R/test.R'
echo "#' some code\n#'\n#' @param here.\n#' @name somethings\nNULL" > R/test.R # overwrite if anything there
pre-commit run --files R/test.R
echo 'running DESCRIPTION'
cp tests/testthat/reference-objects/DESCRIPTION .
sleep 2
echo 'one' >> codemeta.json
pre-commit run --files DESCRIPTION
echo 'running README'
echo 'one' > README.Rmd
sleep 1
echo 'one' > README.md
git add README*
pre-commit run --files README.Rmd
echo 'running _pkgdown.yml'
cp tests/testthat/in/_pkgdown-index-articles.yml _pkgdown.yml
rm -rf man/
mkdir man
cp tests/testthat/in/autoupdate.Rd man/autoudpate.Rd
rm -rf vignettes
mkdir vignettes
cp tests/testthat/in/pkgdown.Rmd vignettes/
pre-commit run --files _pkgdown.yml
echo 'running man/autoupdate.Rd'
git reset HEAD --hard # restore initial state
git clean -f
rm -rf man/
mkdir -p man
cp tests/testthat/in/autoupdate.Rd man/
pre-commit run --files _pkgdown.yml
pre-commit run --files man/autoupdate.Rd
pre-commit run roxygenize --files man/autoupdate.Rd
git reset HEAD --hard # restore initial state
git clean -f
env:
SKIP: consistent-release-tag
1 change: 1 addition & 0 deletions tests/testthat/in/DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ Imports:
Remotes:
ropenscilabs/tic
Encoding: UTF-8
URL: https://example.com
1 change: 1 addition & 0 deletions tests/testthat/in/_pkgdown-articles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ articles:
contents:
- why-use-hooks
- some-more
url: https://example.com
1 change: 1 addition & 0 deletions tests/testthat/in/_pkgdown-index-articles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ articles:
navbar: ~
contents:
- pkgdown
url: https://example.com
1 change: 1 addition & 0 deletions tests/testthat/in/_pkgdown-index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ reference:
Edit the pre-commit configuration
- contents:
- autoupdate
url: https://example.com
1 change: 1 addition & 0 deletions tests/testthat/reference-objects/DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ Remotes:
Encoding: UTF-8
Roxygen: list(markdown = TRUE)
RoxygenNote: 6.1.1
URL: https://example.com

0 comments on commit 07314e1

Please sign in to comment.