Skip to content

Commit 07314e1

Browse files
Merge pull request #577 from lorenzwalthert/issue-576
fix new pkgdown version
2 parents 637b2ca + ece9b1e commit 07314e1

File tree

6 files changed

+33
-7
lines changed

6 files changed

+33
-7
lines changed

.github/workflows/end-to-end.yml

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,25 +61,46 @@ jobs:
6161
6262
- name: Run pre-commit
6363
run: |
64-
echo 'one' > README.Rmd
65-
echo 'one' >> codemeta.json
66-
echo 'one' > README.md
67-
echo "#' some code\n#'\n#' @param here.\n#' @name somethings\nNULL" > R/test.R # overwrite if anything there
6864
brew install pre-commit
69-
pre-commit install
65+
pre-commit install --install-hooks
66+
67+
echo 'running R/test.R'
68+
echo "#' some code\n#'\n#' @param here.\n#' @name somethings\nNULL" > R/test.R # overwrite if anything there
7069
pre-commit run --files R/test.R
70+
71+
echo 'running DESCRIPTION'
72+
cp tests/testthat/reference-objects/DESCRIPTION .
73+
sleep 2
74+
echo 'one' >> codemeta.json
7175
pre-commit run --files DESCRIPTION
76+
77+
echo 'running README'
78+
echo 'one' > README.Rmd
79+
sleep 1
80+
echo 'one' > README.md
7281
git add README*
7382
pre-commit run --files README.Rmd
83+
84+
echo 'running _pkgdown.yml'
7485
cp tests/testthat/in/_pkgdown-index-articles.yml _pkgdown.yml
86+
rm -rf man/
87+
mkdir man
88+
cp tests/testthat/in/autoupdate.Rd man/autoudpate.Rd
7589
rm -rf vignettes
7690
mkdir vignettes
7791
cp tests/testthat/in/pkgdown.Rmd vignettes/
92+
pre-commit run --files _pkgdown.yml
93+
94+
echo 'running man/autoupdate.Rd'
95+
git reset HEAD --hard # restore initial state
96+
git clean -f
7897
rm -rf man/
7998
mkdir -p man
8099
cp tests/testthat/in/autoupdate.Rd man/
81-
pre-commit run --files _pkgdown.yml
82-
pre-commit run --files man/autoupdate.Rd
100+
pre-commit run roxygenize --files man/autoupdate.Rd
101+
83102
git reset HEAD --hard # restore initial state
103+
git clean -f
104+
84105
env:
85106
SKIP: consistent-release-tag

tests/testthat/in/DESCRIPTION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ Imports:
99
Remotes:
1010
ropenscilabs/tic
1111
Encoding: UTF-8
12+
URL: https://example.com

tests/testthat/in/_pkgdown-articles.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ articles:
44
contents:
55
- why-use-hooks
66
- some-more
7+
url: https://example.com

tests/testthat/in/_pkgdown-index-articles.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ articles:
1010
navbar: ~
1111
contents:
1212
- pkgdown
13+
url: https://example.com

tests/testthat/in/_pkgdown-index.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ reference:
44
Edit the pre-commit configuration
55
- contents:
66
- autoupdate
7+
url: https://example.com

tests/testthat/reference-objects/DESCRIPTION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ Remotes:
2222
Encoding: UTF-8
2323
Roxygen: list(markdown = TRUE)
2424
RoxygenNote: 6.1.1
25+
URL: https://example.com

0 commit comments

Comments
 (0)