-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Updating package versions and deploy script * Updated workflows * Updates in line with dfeshiny 0.5.1 * Cleaned up additional conflicts * Package update * Setting R to 4.4.2 and dfeshiny to 0.5.2 * Added dfeshiny a11y_panel and header functions * Removed old accessibility statement * Update ui.R Co-authored-by: Cam Race <[email protected]> * Revert "Update ui.R" This reverts commit 32725aa. * Updating dfeshiny to latest version --------- Co-authored-by: Cam Race <[email protected]>
- Loading branch information
Showing
9 changed files
with
319 additions
and
370 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
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
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,64 @@ | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
name: tidyCode | ||
|
||
jobs: | ||
tidyCode: | ||
runs-on: ubuntu-latest | ||
|
||
env: | ||
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: r-lib/actions/setup-r@v2 | ||
with: | ||
r-version: 4.4.1 | ||
use-public-rspm: true | ||
|
||
- name: Install git2r dependencies | ||
run: sudo apt-get install -y libgit2-dev | ||
|
||
- name: Install proj library (terra depdencies) | ||
run: sudo apt-get install libproj-dev | ||
|
||
- name: Install gdal library (terra dependencies) | ||
run: sudo apt-get install libgdal-dev | ||
|
||
- name: Install udunits library (units dependencies) | ||
run: sudo apt-get install libudunits2-dev | ||
|
||
- name: Restore renv snapshot | ||
shell: Rscript {0} | ||
run: | | ||
if (!requireNamespace("renv", quietly = TRUE)) install.packages("renv") | ||
renv::restore() | ||
- name: Tidy code | ||
shell: Rscript {0} | ||
run: | | ||
codeChecks <- dfeshiny::tidy_code() | ||
if(any(is.na(codeChecks))) { | ||
stop("There is a breaking error in the code.") | ||
} else { | ||
if(TRUE %in% codeChecks) { | ||
stop("The code is not styled correctly. Open the project in RStudio and use tidy_code() to restyle the code.") | ||
} else { | ||
message("----------------------------------------") | ||
message("The code is beautiful, go you!") | ||
message("----------------------------------------") | ||
} | ||
} | ||
- name: Upload test results | ||
if: failure() | ||
uses: actions/upload-artifact@master | ||
with: | ||
name: ${{ runner.os }}-r${{ matrix.config.r }}-tests | ||
path: tests |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.