This repository was archived by the owner on Jun 14, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +40
-35
lines changed Expand file tree Collapse file tree 5 files changed +40
-35
lines changed Original file line number Diff line number Diff line change 1
- # Workflow derived from https://github.com/r-lib/actions/tree/master /examples
1
+ # Workflow derived from https://github.com/r-lib/actions/tree/v2 /examples
2
2
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
3
3
on :
4
4
push :
@@ -31,28 +31,19 @@ jobs:
31
31
steps :
32
32
- uses : actions/checkout@v2
33
33
34
- - uses : r-lib/actions/setup-pandoc@v1
34
+ - uses : r-lib/actions/setup-pandoc@v2
35
35
36
- - uses : r-lib/actions/setup-r@v1
36
+ - uses : r-lib/actions/setup-r@v2
37
37
with :
38
38
r-version : ${{ matrix.config.r }}
39
39
http-user-agent : ${{ matrix.config.http-user-agent }}
40
40
use-public-rspm : true
41
41
42
- - uses : r-lib/actions/setup-r-dependencies@v1
42
+ - uses : r-lib/actions/setup-r-dependencies@v2
43
43
with :
44
- extra-packages : rcmdcheck
44
+ extra-packages : any::rcmdcheck
45
+ needs : check
45
46
46
- - uses : r-lib/actions/check-r-package@v1
47
-
48
- - name : Show testthat output
49
- if : always()
50
- run : find check -name 'testthat.Rout*' -exec cat '{}' \; || true
51
- shell : bash
52
-
53
- - name : Upload check results
54
- if : failure()
55
- uses : actions/upload-artifact@main
47
+ - uses : r-lib/actions/check-r-package@v2
56
48
with :
57
- name : ${{ runner.os }}-r${{ matrix.config.r }}-results
58
- path : check
49
+ upload-snapshots : true
Original file line number Diff line number Diff line change 1
- # Workflow derived from https://github.com/r-lib/actions/tree/master /examples
1
+ # Workflow derived from https://github.com/r-lib/actions/tree/v2 /examples
2
2
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
3
3
on :
4
4
push :
5
5
branches : [main, master]
6
- tags : ['*']
6
+ pull_request :
7
+ branches : [main, master]
8
+ release :
9
+ types : [published]
10
+ workflow_dispatch :
7
11
8
12
name : pkgdown
9
13
10
14
jobs :
11
15
pkgdown :
12
16
runs-on : ubuntu-latest
17
+ # Only restrict concurrency for non-PR jobs
18
+ concurrency :
19
+ group : pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
13
20
env :
14
21
GITHUB_PAT : ${{ secrets.GITHUB_TOKEN }}
15
22
steps :
16
23
- uses : actions/checkout@v2
17
24
18
- - uses : r-lib/actions/setup-pandoc@v1
25
+ - uses : r-lib/actions/setup-pandoc@v2
19
26
20
- - uses : r-lib/actions/setup-r@v1
27
+ - uses : r-lib/actions/setup-r@v2
21
28
with :
22
29
use-public-rspm : true
23
30
24
- - uses : r-lib/actions/setup-r-dependencies@v1
31
+ - uses : r-lib/actions/setup-r-dependencies@v2
25
32
with :
26
- extra-packages : pkgdown
33
+ extra-packages : any:: pkgdown, local::.
27
34
needs : website
28
35
29
- - name : Deploy package
30
- run : |
31
- git config --local user.name "$GITHUB_ACTOR"
32
- git config --local user.email "[email protected] "
33
- Rscript -e 'pkgdown::deploy_to_branch(new_process = FALSE)'
36
+ - name : Build site
37
+ run : pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
38
+ shell : Rscript {0}
39
+
40
+ - name : Deploy to GitHub pages 🚀
41
+ if : github.event_name != 'pull_request'
42
+
43
+ with :
44
+ clean : false
45
+ branch : gh-pages
46
+ folder : docs
Original file line number Diff line number Diff line change 1
- # Workflow derived from https://github.com/r-lib/actions/tree/master /examples
1
+ # Workflow derived from https://github.com/r-lib/actions/tree/v2 /examples
2
2
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
3
3
on :
4
4
push :
@@ -17,14 +17,15 @@ jobs:
17
17
steps :
18
18
- uses : actions/checkout@v2
19
19
20
- - uses : r-lib/actions/setup-r@v1
20
+ - uses : r-lib/actions/setup-r@v2
21
21
with :
22
22
use-public-rspm : true
23
23
24
- - uses : r-lib/actions/setup-r-dependencies@v1
24
+ - uses : r-lib/actions/setup-r-dependencies@v2
25
25
with :
26
- extra-packages : covr
26
+ extra-packages : any::covr
27
+ needs : coverage
27
28
28
29
- name : Test coverage
29
- run : covr::codecov()
30
+ run : covr::codecov(quiet = FALSE )
30
31
shell : Rscript {0}
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ knitr::opts_chunk$set(
16
16
# gsdmvn
17
17
18
18
<!-- badges: start -->
19
- [ ![ R-CMD-check] ( https://github.com/Merck/gsdmvn/workflows/R-CMD-check/badge.svg )] ( https://github.com/Merck/gsdmvn/actions )
19
+ [ ![ R-CMD-check] ( https://github.com/Merck/gsdmvn/actions/ workflows/R-CMD-check.yaml /badge.svg )] ( https://github.com/Merck/gsdmvn/actions/workflows/R-CMD-check.yaml )
20
20
[ ![ Codecov test coverage] ( https://codecov.io/gh/Merck/gsdmvn/branch/main/graph/badge.svg )] ( https://app.codecov.io/gh/Merck/gsdmvn?branch=main )
21
21
<!-- badges: end -->
22
22
Original file line number Diff line number Diff line change 5
5
6
6
<!-- badges: start -->
7
7
8
- [ ![ R-CMD-check] ( https://github.com/Merck/gsdmvn/workflows/R-CMD-check/badge.svg )] ( https://github.com/Merck/gsdmvn/actions )
8
+ [ ![ R-CMD-check] ( https://github.com/Merck/gsdmvn/actions/ workflows/R-CMD-check.yaml /badge.svg )] ( https://github.com/Merck/gsdmvn/actions/workflows/R-CMD-check.yaml )
9
9
[ ![ Codecov test coverage] ( https://codecov.io/gh/Merck/gsdmvn/branch/main/graph/badge.svg )] ( https://app.codecov.io/gh/Merck/gsdmvn?branch=main )
10
10
<!-- badges: end -->
11
11
You can’t perform that action at this time.
0 commit comments