-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add shinytest2 for testing run example and draft yaml for deploy
- Loading branch information
Showing
6 changed files
with
428 additions
and
383 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,4 @@ | |
^pkgdown$ | ||
^\.github$ | ||
^LICENSE\.md$ | ||
_\.new\.png$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
name: Showcase app deploy | ||
|
||
jobs: | ||
deployShiny: | ||
runs-on: ubuntu-latest | ||
|
||
env: | ||
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: r-lib/actions/setup-r@v2 | ||
with: | ||
use-public-rspm: true | ||
|
||
- name: Load package | ||
shell: Rscript {0} | ||
run: | | ||
devtools::load_all() | ||
- name: Install rsconnect | ||
shell: Rscript {0} | ||
run: | | ||
if (!requireNamespace("renv", quietly = TRUE)) install.packages("renv") | ||
renv::install("rsconnect") | ||
- name: Push to shinyapps.io | ||
run: > | ||
Rscript | ||
-e "rsconnect::setAccountInfo(name = 'department-for-education', token = '${{secrets.SHINYAPPS_TOKEN}}', secret = '${{secrets.SHINYAPPS_SECRET}}')" | ||
-e "shiny_app <- run_example()" | ||
-e "rsconnect::deployApp(shiny_app, forceUpdate = TRUE)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,5 @@ | |
.RData | ||
.DS_Store | ||
docs/ | ||
# {shinytest2}: Ignore new debug snapshots for `$expect_values()` | ||
*_.new.png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,7 @@ Imports: | |
shinyjs, | ||
stringr | ||
Suggests: | ||
testthat | ||
testthat, | ||
shinytest2 | ||
Encoding: UTF-8 | ||
RoxygenNote: 7.3.2 |
Oops, something went wrong.