generated from compucorp/template-repo
-
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.
Merge pull request #94 from compucorp/comcl-670-fix-token-usage
COMCL-670: Fix Token Usage
- Loading branch information
Showing
9 changed files
with
52 additions
and
72 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 |
---|---|---|
|
@@ -34,14 +34,14 @@ jobs: | |
run : amp config:set --mysql_dsn=mysql://root:root@mysql:3306 | ||
|
||
- name: Build Drupal site | ||
run: civibuild create drupal-clean --civi-ver 5.51.3 --cms-ver 7.79 --web-root $GITHUB_WORKSPACE/site | ||
run: civibuild create drupal-clean --civi-ver 5.75.0 --cms-ver 7.79 --web-root $GITHUB_WORKSPACE/site | ||
|
||
- uses: compucorp/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
repo: compucorp/civicrm-core | ||
version: 5.51.3 | ||
version: 5.75.0 | ||
path: site/web/sites/all/modules/civicrm | ||
|
||
- uses: actions/checkout@v2 | ||
|
@@ -52,20 +52,26 @@ jobs: | |
working-directory: ${{ env.CIVICRM_EXTENSIONS_DIR }} | ||
run: | | ||
git clone --depth 1 https://github.com/civicrm/org.civicrm.shoreditch.git | ||
git clone --depth 1 --no-single-branch https://github.com/compucorp/uk.co.compucorp.civicase.git | ||
git clone --depth 1 https://github.com/compucorp/uk.co.compucorp.usermenu.git | ||
git clone --depth 1 -b 4.2.0-dev --no-single-branch https://github.com/compucorp/uk.co.compucorp.civicase.git | ||
git clone --depth 1 -b 2.1.0-dev https://github.com/compucorp/uk.co.compucorp.usermenu.git | ||
- name: Switch Civicase Branch | ||
working-directory: ${{ env.CIVICRM_EXTENSIONS_DIR }}/uk.co.compucorp.civicase | ||
- name: Setup Test DB | ||
run: echo "CREATE DATABASE civicrm_test;" | mysql -u root --password=root --host=mysql | ||
|
||
- name: Update civicrm.settings.php | ||
run: | | ||
if [[ $(git ls-remote --heads origin ${GITHUB_HEAD_REF}) ]] | ||
then | ||
git checkout ${GITHUB_HEAD_REF} | ||
elif [[ $(git ls-remote --heads origin ${GITHUB_BASE_REF}) ]] | ||
then | ||
git checkout ${GITHUB_BASE_REF} | ||
fi | ||
shell: bash | ||
FILE_PATH="$GITHUB_WORKSPACE/site/web/sites/default/civicrm.settings.php" | ||
INSERT_LINE="\$GLOBALS['_CV']['TEST_DB_DSN'] = 'mysql://root:root@mysql:3306/civicrm_test?new_link=true';" | ||
TMP_FILE=$(mktemp) | ||
while IFS= read -r line | ||
do | ||
echo "$line" >> "$TMP_FILE" | ||
if [ "$line" = "<?php" ]; then | ||
echo "$INSERT_LINE" >> "$TMP_FILE" | ||
fi | ||
done < "$FILE_PATH" | ||
mv "$TMP_FILE" "$FILE_PATH" | ||
echo "File modified successfully." | ||
- name: Install Certificate and its dependencies | ||
working-directory: ${{ env.CIVICRM_EXTENSIONS_DIR }} | ||
|
@@ -85,4 +91,4 @@ jobs: | |
- name: Run phpunit tests | ||
if: ${{ always() }} | ||
working-directory: ${{ env.CIVICRM_EXTENSIONS_DIR }}/uk.co.compucorp.certificate | ||
run: phpunit5 | ||
run: phpunit8 |
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
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
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