Skip to content

Commit

Permalink
feat: Add option to set custom ignore paths
Browse files Browse the repository at this point in the history
  • Loading branch information
bwalkerl authored and brendanheywood committed Jun 6, 2024
1 parent 7f73f5a commit fb19dc8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ on:
description: 'Specify the minimum version of PHP to test against. Will exclude workflows using older versions of PHP.'
type: string
default: '7.1'
ignore_paths:
description: 'Specify custom paths for CI to ignore. Third party libraries are ignored by default.'
type: string
default: ''
secrets:
moodle_org_token:
required: false
Expand Down Expand Up @@ -190,6 +194,13 @@ jobs:
--health-timeout 5s
--health-retries 3
steps:
- name: Set custom environment variables
run: |
USER_IGNORE_PATHS="${{ inputs.ignore_paths }}"
if [ -n "${USER_IGNORE_PATHS}" ]; then
IGNORE_PATHS="${IGNORE_PATHS},${USER_IGNORE_PATHS}"
echo "IGNORE_PATHS=${IGNORE_PATHS}" >> $GITHUB_ENV
fi
- name: Check out CI code
uses: actions/checkout@v3
with:
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ Below lists the available inputs which are _all optional_:
| release_branches | Name of the non-standardly named branch which should run the release job |
| moodle_branches | Specify the MOODLE_XX_STABLE branch you specifically want to test against. This is _not_ recommended, and instead you should configuring a supported range. |
| min_php | The minimum php version to test. Set this to support the minimum php version supported by the plugin. Defaults to '7.1', however more recent Moodle branches only test higher versions. |
| ignore_paths | Specify custom paths for CI to ignore. Third party libraries are ignored by default. |

### Add CI badge

Expand Down

0 comments on commit fb19dc8

Please sign in to comment.