-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update PHP version to 8.1 and other updates to
helpers.sh
(#131)
* set the default php version to 8.1 * update the update_php function to update to 8.1 at minimum * allow the update_php function to be run independently so we can test it * add tests for the updated update_php function * update the test script to add bats tests * update the echo to be more accurate * add more verbose inline docs * bail if we can't copy the file * ensure the job runner has permission to write to the filesystem * update the sed command to work cross-platform maybe.... * don't bail out of the script entirely in the update php script if in CI * bail early (and don't try to activate) if the theme wasn't found * remove line breaks or spaces from the theme name * echo the themelist so we can see what's being grepped * change the grep to be more inclusive * use grep -q instead of -w * normalize genrenated theme names * move the messaging about the theme not being in the list up to that check we can also remove the conditional around activation because if it's in the list, we should be able to activate it
- Loading branch information
1 parent
652f9d0
commit c058384
Showing
3 changed files
with
60 additions
and
45 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,9 @@ on: | |
- synchronize | ||
- ready_for_review | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
@@ -46,3 +49,12 @@ jobs: | |
- name: Run tests | ||
run: composer test | ||
|
||
- name: Install bats | ||
uses: bats-core/[email protected] | ||
|
||
- name: Test Helper functions | ||
env: | ||
CI: 1 | ||
run: | | ||
bats -p -t .github/tests |
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