diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 380fe77..a6f3421 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,7 +7,7 @@ jobs: services: postgres: - image: postgres:13 + image: postgres:14 env: POSTGRES_USER: 'postgres' POSTGRES_HOST_AUTH_METHOD: 'trust' @@ -31,11 +31,14 @@ jobs: matrix: include: - php: '8.2' - moodle-branch: 'master' + moodle-branch: 'main' database: 'pgsql' - php: '8.1' moodle-branch: 'MOODLE_402_STABLE' database: 'mariadb' + - php: '8.1' + moodle-branch: 'MOODLE_401_STABLE' + database: 'pgsql' - php: '8.0' moodle-branch: 'MOODLE_401_STABLE' database: 'pgsql' @@ -69,6 +72,8 @@ jobs: - name: Install moodle-plugin-ci run: | + moodle-plugin-ci add-plugin moodleou/moodle-qbehaviour_selfassess + moodle-plugin-ci add-plugin moodleou/moodle-qtype_recordrtc moodle-plugin-ci install --plugin ./plugin --db-host=127.0.0.1 env: DB: ${{ matrix.database }} @@ -89,7 +94,7 @@ jobs: - name: Moodle Code Checker if: ${{ always() }} - run: moodle-plugin-ci phpcs --max-warnings 0 + run: moodle-plugin-ci phpcs --test-version ${{ matrix.php }} --max-warnings 0 - name: Moodle PHPDoc Checker if: ${{ always() }} @@ -117,4 +122,4 @@ jobs: - name: Behat features if: ${{ always() }} - run: moodle-plugin-ci behat --profile chrome + run: moodle-plugin-ci behat --profile chrome --dump diff --git a/tests/behat/filter_embedquestion.feature b/tests/behat/filter_embedquestion.feature index 032814c..c752ff9 100644 --- a/tests/behat/filter_embedquestion.feature +++ b/tests/behat/filter_embedquestion.feature @@ -111,7 +111,7 @@ Feature: Add an activity and embed a question inside that activity And I should see "The answer is true." @javascript - Scenario: Test display of Save button for embedded recordrtc question. + Scenario: Test display of Check button for embedded recordrtc question. Given the following "questions" exist: | questioncategory | qtype | name | idnumber | template | | Test questions | recordrtc | Record AV question | test1 | audio | @@ -122,4 +122,4 @@ Feature: Add an activity and embed a question inside that activity And I set the field "How the question behaves" to "Immediate feedback" And I press "Embed question" And I switch to "filter_embedquestion-iframe" iframe - And I should see "Save" + And I should see "Check"