diff --git a/.github/workflows/acceptance.yml b/.github/workflows/acceptance.yml index 58aba5ff0..ace8d2d2a 100644 --- a/.github/workflows/acceptance.yml +++ b/.github/workflows/acceptance.yml @@ -153,16 +153,14 @@ jobs: - name: Initialise moodle-plugin-ci run: | - git clone https://github.com/NoelDeMartin/moodle-plugin-ci --branch selenium-env ci - composer install -d ./ci + composer create-project -n --no-dev --prefer-dist moodlehq/moodle-plugin-ci ci ^4.4 echo $(cd ci/bin; pwd) >> $GITHUB_PATH echo $(cd ci/vendor/bin; pwd) >> $GITHUB_PATH sudo locale-gen en_AU.UTF-8 echo "NVM_DIR=$HOME/.nvm" >> $GITHUB_ENV - sed -i "58i\$CFG->behat_profiles['chrome']['capabilities'] = ['extra_capabilities' => ['chromeOptions' => ['args' => ['--ignore-certificate-errors', '--allow-running-insecure-content']]]];" ci/res/template/config.php.txt - name: Install Behat Snapshots plugin - run: moodle-plugin-ci add-plugin NoelDeMartin/moodle-local_behatsnapshots + run: moodle-plugin-ci add-plugin moodlemobile/moodle-local_behatsnapshots - name: Install moodle-plugin-ci run: moodle-plugin-ci install --plugin ./plugin --db-host=127.0.0.1 @@ -172,6 +170,7 @@ jobs: MOODLE_REPO: ${{ github.event.inputs.moodle_repository || 'https://github.com/moodle/moodle.git' }} MOODLE_BEHAT_IONIC_WWWROOT: https://localhost:8001 MOODLE_BEHAT_DEFAULT_BROWSER: chrome + MOODLE_BEHAT_CHROME_CAPABILITIES: "['extra_capabilities' => ['chromeOptions' => ['args' => ['--ignore-certificate-errors', '--allow-running-insecure-content']]]]" - name: Update config run: moodle-plugin-ci add-config 'define("TEST_MOD_BIGBLUEBUTTONBN_MOCK_SERVER", "http://localhost:8002/hash" . sha1($CFG->wwwroot));' diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index b336c53a9..df813191c 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -189,16 +189,14 @@ jobs: - name: Initialise moodle-plugin-ci run: | - git clone https://github.com/NoelDeMartin/moodle-plugin-ci --branch selenium-env ci - composer install -d ./ci + composer create-project -n --no-dev --prefer-dist moodlehq/moodle-plugin-ci ci ^4.4 echo $(cd ci/bin; pwd) >> $GITHUB_PATH echo $(cd ci/vendor/bin; pwd) >> $GITHUB_PATH sudo locale-gen en_AU.UTF-8 echo "NVM_DIR=$HOME/.nvm" >> $GITHUB_ENV - sed -i "58i\$CFG->behat_profiles['chrome']['capabilities'] = ['extra_capabilities' => ['chromeOptions' => ['args' => ['--ignore-certificate-errors', '--allow-running-insecure-content']]]];" ci/res/template/config.php.txt - name: Install Behat Snapshots plugin - run: moodle-plugin-ci add-plugin NoelDeMartin/moodle-local_behatsnapshots + run: moodle-plugin-ci add-plugin moodlemobile/moodle-local_behatsnapshots - name: Install moodle-plugin-ci run: moodle-plugin-ci install --plugin ./plugin --db-host=127.0.0.1 @@ -208,6 +206,7 @@ jobs: MOODLE_REPO: ${{ github.event.inputs.moodle_repository || 'https://github.com/moodle/moodle.git' }} MOODLE_BEHAT_IONIC_WWWROOT: https://localhost:8001 MOODLE_BEHAT_DEFAULT_BROWSER: chrome + MOODLE_BEHAT_CHROME_CAPABILITIES: "['extra_capabilities' => ['chromeOptions' => ['args' => ['--ignore-certificate-errors', '--allow-running-insecure-content']]]]" - name: Update config run: |