Skip to content

Commit

Permalink
Merge pull request #79 from getsmarter/MR_LPEXED-642
Browse files Browse the repository at this point in the history
MR_LPEXED-642 | Upgrade the mod_questionnaire to version 4.1
  • Loading branch information
Mmahadinana authored Nov 20, 2024
2 parents c4ca5b4 + a9ef80d commit 73737bc
Show file tree
Hide file tree
Showing 223 changed files with 15,858 additions and 6,309 deletions.
121 changes: 121 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
name: Moodle plugin CI
on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-22.04

services:
postgres:
image: postgres:13
env:
POSTGRES_USER: 'postgres'
POSTGRES_HOST_AUTH_METHOD: 'trust'
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 3

mariadb:
image: mariadb:10
env:
MYSQL_USER: 'root'
MYSQL_ALLOW_EMPTY_PASSWORD: "true"
MYSQL_CHARACTER_SET_SERVER: "utf8mb4"
MYSQL_COLLATION_SERVER: "utf8mb4_unicode_ci"
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval 10s --health-timeout 5s --health-retries 3

strategy:
fail-fast: false
matrix:
# include:
# - php: '8.3'
# moodle-branch: 'MOODLE_404_STABLE'
# database: 'pgsql'
# - php: '8.2'
# moodle-branch: 'MOODLE_403_STABLE'
# database: 'mariadb'
# - php: '8.1'
# moodle-branch: 'MOODLE_403_STABLE'
# database: 'pgsql'
# - php: '8.0'
# moodle-branch: 'MOODLE_402_STABLE'
# database: 'mariadb'
# - php: '7.4'
# moodle-branch: 'MOODLE_401_STABLE'
# database: 'pgsql'

steps:
- name: Checkout
uses: actions/checkout@v4
with:
path: plugin

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: ${{ matrix.extensions }}
ini-values: max_input_vars=5000
# none to use phpdbg fallback. Specify pcov (Moodle 3.10 and up) or xdebug to use them instead.
coverage: none

- name: Deploy moodle-plugin-ci
run: |
composer create-project -n --no-dev --prefer-dist moodlehq/moodle-plugin-ci ci ^4
echo $(cd ci/bin; pwd) >> $GITHUB_PATH
echo $(cd ci/vendor/bin; pwd) >> $GITHUB_PATH
sudo locale-gen en_AU.UTF-8
# Install nvm.
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
- name: Install Moodle
# Need explicit IP to stop mysql client fail on attempt to use unix socket.
run: moodle-plugin-ci install --plugin ./plugin --db-host=127.0.0.1
env:
DB: ${{ matrix.database }}
MOODLE_BRANCH: ${{ matrix.moodle-branch }}
IGNORE_PATHS: 'templates/local/mobile'
PHPDOCCHECKER_IGNORE_PATHS: /^vendor/

- name: PHP Lint
if: ${{ always() }}
run: moodle-plugin-ci phplint

- name: PHP Mess Detector
continue-on-error: true # This step will show errors but will not fail
if: ${{ always() }}
run: moodle-plugin-ci phpmd

- name: Moodle Code Checker
if: ${{ always() }}
run: moodle-plugin-ci codechecker || true

- name: Moodle PHPDoc Checker
if: ${{ always() }}
run: moodle-plugin-ci phpdoc || true

- name: Validating
if: ${{ always() }}
run: moodle-plugin-ci validate

- name: Check upgrade savepoints
if: ${{ always() }}
run: moodle-plugin-ci savepoints

- name: Mustache Lint
if: ${{ always() }}
run: moodle-plugin-ci mustache

- name: Grunt
if: ${{ always() }}
run: moodle-plugin-ci grunt

- name: PHPUnit tests
if: ${{ always() }}
run: moodle-plugin-ci phpunit

- name: Behat features
if: ${{ always() }}
run: moodle-plugin-ci behat --profile chrome
93 changes: 0 additions & 93 deletions .travis.yml

This file was deleted.

38 changes: 38 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
Release Notes

Release 4.1.0 (Build - 2023081100)

Initial release for Moodle 4.1 forward.

Release 4.1.1 (Build - 2024082900)

Improvements:
* Compatible with Moodle 4.3 and 4.4.
* Compatible with PHP8.2.
* PR449 - Allow localized answer options to be displayed correctly in conditions.
* PR506 - Accessibility: improved accessibility for essay box type.
* PR495 - Accessibility: The slider values should be associated with the labels and the slider should be programmatically associated with the question
* PR497 - Accessibility: Rate table does not have a programmatically associated caption.
* PR496 - Accessibility: Numeric instructions not programmatically associated with field.
* PR505 - Accessibility: Rate form controls within the table are not accessible.
* PR501 - Accessibility: Check boxes missing group label.
* PR511 - Accessibility: Radio buttons & Yes/No missing group labels.
* PR517 - Mobile: Update sectiontext questions to display on mobile.
* PR520 - Add Slider question type compatibility with Feedback features.
* PR526 - Have additional info text pass through filters everywhere fixes.
* PR534 - Fix namespace issues with externallib.php file.
* PR536 - Support for user identity fields in Download Responses.
* PR577 - Improved headings in report page.
* PR581 - Mobile: Adapt mobile code to ionic 7.
* PR569 - Adopt icon size to 24×24 with a smaller content as other icons.
* PR586, PR579, PR594 - Various deprecations fixed.
* PR593 - Ensure "pdf" extension force.

Bug Fixes:
* PR508 - General PHP fixes.
* PR523 - Behat activity completion fix.
* PR514 - Section text qtype should not support feedback.
* PR516 - Course description displays properly.

(see CHANGES.md in release 4.00 for earlier changes.)

80 changes: 0 additions & 80 deletions CHANGES.txt

This file was deleted.

Loading

0 comments on commit 73737bc

Please sign in to comment.