stupid me #5
Workflow file for this run
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
name: Test Shiny App Startup | |
on: [push] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v3 | |
- name: Set up R environment | |
uses: r-lib/actions/setup-r@v2 | |
- name: Install dependencies | |
run: | | |
Rscript -e "install.packages('remotes', repos='http://cran.rstudio.com/')" | |
Rscript -e "install.packages('shiny', repos='http://cran.rstudio.com/')" | |
Rscript -e "remotes::install_deps(dependencies = TRUE)" | |
- name: Test if Shiny app starts | |
run: | | |
Rscript -e "shiny::runApp('program/shinyApp', launch.browser = FALSE, port = 3838)" | |
sleep 10 # Sleep for 10 seconds to ensure the app has time to start | |
curl http://localhost:3838 |