Skip to content

Commit

Permalink
update ci configuration
Browse files Browse the repository at this point in the history
- phpunit.xml override bug in moodle-plugin-ci was fixed -> remove workaround (moodlehq/moodle-plugin-ci#203)
- update moodle-plugin-ci to version 4
- update actions/checkout to v4
  • Loading branch information
Glutamat42 committed Feb 15, 2024
1 parent 6c729ac commit 8112e48
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions .github/workflows/moodle-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:

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

Expand All @@ -69,15 +69,15 @@ 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
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
- name: Install moodle-plugin-ci
run: |
moodle-plugin-ci install --no-init --plugin ./plugin --db-host=127.0.0.1
moodle-plugin-ci install --plugin ./plugin --db-host=127.0.0.1
env:
DB: ${{ matrix.database }}
MOODLE_BRANCH: ${{ matrix.moodle-branch }}
Expand Down Expand Up @@ -128,14 +128,6 @@ jobs:
# cd moodle/local/logging
# composer i

- name: Init moodle test env
# if using moodle-plugin-ci for the init phase the phpunit.xml file is replaced with a generated one including files that should not be included
# https://github.com/moodlehq/moodle-plugin-ci/issues/203
if: ${{ always() }}
run: |
cd moodle
php admin/tool/phpunit/cli/init.php
- name: PHPUnit tests
if: ${{ always() }}
run: |
Expand All @@ -158,7 +150,7 @@ jobs:
unset GITHUB_ACTIONS
php ../../vendor/bin/php-coveralls --coverage_clover=coverage.xml -v --json_path coveralls_upload.json --exclude-no-stmt
# There are no behat tests (yet)
# There are no behat tests
# - name: Behat features
# if: ${{ always() }}
# run: moodle-plugin-ci behat --profile chrome

0 comments on commit 8112e48

Please sign in to comment.