Skip to content

Commit

Permalink
Switching workflow scripts to maxos as ubuntu run scripts are failing…
Browse files Browse the repository at this point in the history
… on websocket
  • Loading branch information
rmbielby committed Nov 27, 2024
1 parent 866e84f commit 9b764d4
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/automated-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,14 @@ name: Automated tests

jobs:
automatedTests:
runs-on: ubuntu-latest
runs-on: ${{ matrix.config.os }}

strategy:
fail-fast: false
matrix:
config:
- {os: macOS-latest, r: 'release'}

env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/deploy-shiny.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,19 @@ on:
branches:
- main
- development
pull-request:

name: shinyapps.io deploy

jobs:
deployShiny:
runs-on: ubuntu-latest
runs-on: ${{ matrix.config.os }}

strategy:
fail-fast: false
matrix:
config:
- {os: macOS-latest, r: 'release'}

env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -54,6 +61,7 @@ jobs:
# Get in touch with the Stats Development team if you need to add the below secrets to publish to shinyapps.io

- name: Push to shiny.io
if: github.event_name != 'pull_request'
run: >
Rscript
-e "rsconnect::setAccountInfo(name = 'department-for-education', token = '${{secrets.SHINYAPPS_TOKEN}}', secret = '${{secrets.SHINYAPPS_SECRET}}')"
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/tidyCode.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,12 @@ jobs:
tidyCode:
runs-on: ${{ matrix.config.os }}

name: ${{ matrix.config.os }} (${{ matrix.config.r }})
name: tidy-code

strategy:
fail-fast: false
matrix:
config:
# Running on mac as it's quicker to build
- {os: macOS-latest, r: 'release'}

env:
Expand Down Expand Up @@ -57,7 +56,7 @@ jobs:
- name: Tidy code
shell: Rscript {0}
run: |
codeChecks <- tidy_code()
codeChecks <- dfeshiny::tidy_code()
if(any(is.na(codeChecks))) {
stop("There is a breaking error in the code.")
Expand Down

0 comments on commit 9b764d4

Please sign in to comment.