Skip to content

Commit

Permalink
5
Browse files Browse the repository at this point in the history
  • Loading branch information
RasmusSkytte committed Nov 15, 2023
1 parent bea9a71 commit 7f4acbc
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 26 deletions.
48 changes: 23 additions & 25 deletions .github/workflows/call_all_jobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:

# To give granular control of when workflows should execute, we determine which "categories" of files has changed
determine-changed-files:
runs-on: ubuntu-latest
name: ⚙️ Detemine affected files
steps:
- uses: actions/checkout@v4
Expand All @@ -36,30 +37,6 @@ jobs:
- README.md
- README.Rmd
# # We call the reuseable workflow that triggers all AEF-DDF workflows
# all-aef-ddf-workflows:
# name: ⚙️ Run all AEF-DDF workflows
# uses: ./.github/workflows/workflow_dispatcher.yaml
# with:
# # We pass information about the triggering event
# event_name: ${{ github.event_name }}
# run_id: ${{ github.run_id }}

# # We tell the workflow which files have been changed in this update
# R_files_changed: ${{ steps.changed-files-yaml.outputs.R_any_changed }}
# test_files_changed: ${{ steps.changed-files-yaml.outputs.test_any_changed }}
# man_files_changed: ${{ steps.changed-files-yaml.outputs.man_any_changed }}
# vignette_files_changed: ${{ steps.changed-files-yaml.outputs.vignette_any_changed }}
# readme_files_changed: ${{ steps.changed-files-yaml.outputs.readme_any_changed }}

# # test-coverage creates data bases for the tests. Here you can specify the schemas you need for the workflow
# schema_creation: '"CREATE SCHEMA test; CREATE SCHEMA \"test.one\";"'
# secrets: inherit


all-aef-ddf-workflows:
steps:
- name: R_files
if: steps.changed-files-yaml.outputs.R_any_changed == 'true'
run: |
Expand Down Expand Up @@ -88,4 +65,25 @@ jobs:
if: steps.changed-files-yaml.outputs.readme_any_changed == 'true'
run: |
echo "One or more test file(s) has changed."
echo "List all the files that have changed: ${{ steps.changed-files-yaml.outputs.readme_all_changed_files }}"
echo "List all the files that have changed: ${{ steps.changed-files-yaml.outputs.readme_all_changed_files }}"
# # We call the reuseable workflow that triggers all AEF-DDF workflows
# all-aef-ddf-workflows:
# name: ⚙️ Run all AEF-DDF workflows
# uses: ./.github/workflows/workflow_dispatcher.yaml
# with:
# # We pass information about the triggering event
# event_name: ${{ github.event_name }}
# run_id: ${{ github.run_id }}

# # We tell the workflow which files have been changed in this update
# R_files_changed: ${{ steps.changed-files-yaml.outputs.R_any_changed }}
# test_files_changed: ${{ steps.changed-files-yaml.outputs.test_any_changed }}
# man_files_changed: ${{ steps.changed-files-yaml.outputs.man_any_changed }}
# vignette_files_changed: ${{ steps.changed-files-yaml.outputs.vignette_any_changed }}
# readme_files_changed: ${{ steps.changed-files-yaml.outputs.readme_any_changed }}

# # test-coverage creates data bases for the tests. Here you can specify the schemas you need for the workflow
# schema_creation: '"CREATE SCHEMA test; CREATE SCHEMA \"test.one\";"'
# secrets: inherit

2 changes: 1 addition & 1 deletion R/bad_lint.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
#' @param x some number
#' @export
test_function <- function(x) {
return(x+2)
return(x+1)
}

0 comments on commit 7f4acbc

Please sign in to comment.