Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement all recent Moodle and PHP versions in tests. #75

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
80 changes: 74 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,83 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ['8.0', '8.1']
database: ['mariadb', 'pgsql']
moodlebranch: ['MOODLE_401_STABLE', 'MOODLE_402_STABLE', 'MOODLE_403_STABLE']
include:
- node: 16.20
- php: 8.3
moodlebranch: MOODLE_404_STABLE
database: pgsql
node: 16.20
- php: 8.3
moodlebranch: MOODLE_404_STABLE
database: mariadb
node: 16.20
- php: 8.2
moodlebranch: MOODLE_404_STABLE
database: pgsql
node: 16.20
- php: 8.2
moodlebranch: MOODLE_404_STABLE
database: mariadb
node: 16.20
- php: 8.1
moodlebranch: MOODLE_404_STABLE
database: pgsql
node: 16.20
- php: 8.1
moodlebranch: MOODLE_404_STABLE
database: mariadb
node: 16.20
- php: 8.2
moodlebranch: MOODLE_403_STABLE
database: pgsql
node: 16.20
- php: 8.2
moodlebranch: MOODLE_403_STABLE
database: mariadb
node: 16.20
- php: 8.1
moodlebranch: MOODLE_403_STABLE
database: pgsql
node: 16.20
- php: 8.1
moodlebranch: MOODLE_403_STABLE
database: mariadb
node: 16.20
- php: 8.0
moodlebranch: MOODLE_403_STABLE
database: pgsql
node: 16.20
- php: 8.0
moodlebranch: MOODLE_403_STABLE
database: mariadb
node: 16.20
- php: 8.2
moodlebranch: MOODLE_402_STABLE
database: pgsql
node: 16.20
- php: 8.2
moodlebranch: MOODLE_402_STABLE
database: mariadb
node: 16.20
- php: 8.1
moodlebranch: MOODLE_402_STABLE
database: pgsql
node: 16.20
- php: 8.1
moodlebranch: MOODLE_402_STABLE
database: mariadb
node: 16.20
- php: 8.0
moodlebranch: MOODLE_402_STABLE
database: pgsql
node: 16.20
- php: 8.0
moodlebranch: MOODLE_402_STABLE
database: mariadb
node: 16.20

steps:
- name: Check out repository code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: plugin

Expand All @@ -65,7 +133,7 @@ jobs:

- name: Initialise moodle-plugin-ci
run: |
composer create-project -n --no-dev --prefer-dist moodlehq/moodle-plugin-ci ci ^3
composer create-project -n --no-dev --prefer-dist moodlehq/moodle-plugin-ci ci ^4
# Add dirs to $PATH
echo $(cd ci/bin; pwd) >> $GITHUB_PATH
echo $(cd ci/vendor/bin; pwd) >> $GITHUB_PATH
Expand Down
2 changes: 1 addition & 1 deletion classes/api/api_exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
* This is a dummy class for testing purpose to simulate the communicate with the etherpadlite server.
*
* @package mod_etherpadlite
*
* @author Andreas Grabs <[email protected]>
* @see https://github.com/TomNomNom/etherpad-lite-client
* @copyright 2018 onwards Grabs EDV {@link https://www.grabs-edv.de}
* @license Apache License
*/
class api_exception extends \moodle_exception {
Expand Down
2 changes: 1 addition & 1 deletion classes/api/dummy_client.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
* This is a dummy class for testing purpose to simulate the communicate with the etherpadlite server.
*
* @package mod_etherpadlite
*
* @author Andreas Grabs <[email protected]>
* @see https://github.com/TomNomNom/etherpad-lite-client
* @copyright 2018 onwards Grabs EDV {@link https://www.grabs-edv.de}
* @license Apache License
*/
class dummy_client extends client {
Expand Down
1 change: 0 additions & 1 deletion classes/privacy/provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.


namespace mod_etherpadlite\privacy;

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/behat/etherpadlite_create.feature
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Feature: Show the etherpadlite activity link on course page
# Set up a etherpadlite.
When I log in as "teacher1"
And I am on "Course 1" course homepage with editing mode on
And I add a "Etherpad Lite" to section "1" and I fill the form with:
And I add a etherpadlite activity to course "Course 1" section "1" and I fill the form with:
| Name | testpad1 |
| Etherpadlite Intro | Intro to Testpad2 |

Expand Down
2 changes: 1 addition & 1 deletion tests/behat/etherpadlite_show_fullscreen.feature
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Feature: Show the etherpadlite activity in fullscreen
# Set up a etherpadlite.
When I log in as "teacher1"
And I am on "Course 1" course homepage with editing mode on
And I add a "Etherpad Lite" to section "1" and I fill the form with:
And I add a etherpadlite activity to course "Course 1" section "1" and I fill the form with:
| Name | testpad1 |
| Etherpadlite Intro | Intro to Testpad2 |

Expand Down
Loading