AutorÃa | Ultima modificación | Ver Log |
name: Cronon:schedule:- cron: "5 10 9 * *"jobs:ci:name: ciruns-on: ubuntu-lateststrategy:fail-fast: falsematrix:moodle-branch: ['main']php: ['8.1']database: ['mysqli']steps:- name: checkout pluginuses: actions/checkout@v4with:path: this-plugin- name: setup PHPuses: shivammathur/setup-php@v2with:php-version: ${{ matrix.php }}ini-values: max_input_vars=5000coverage: pcov- name: composerrun: |composer create-project -n --no-dev --prefer-dist moodlehq/moodle-plugin-ci ciecho $(cd ci/bin; pwd) >> $GITHUB_PATHecho $(cd ci/vendor/bin; pwd) >> $GITHUB_PATHsudo locale-gen en_AU.UTF-8sudo systemctl start mysql.service- name: install Moodlerun: moodle-plugin-ci install --db-user=root --db-pass=root --db-host=127.0.0.1 --plugin this-pluginenv:DB: ${{ matrix.database }}MOODLE_BRANCH: ${{ matrix.moodle-branch }}- name: phplintif: ${{ !cancelled() }}run: moodle-plugin-ci --ansi phplint- name: phpmdif: ${{ !cancelled() }}run: moodle-plugin-ci --ansi phpmd- name: phpdocif: ${{ !cancelled() }}run: moodle-plugin-ci --ansi phpdoc- name: codecheckerif: ${{ !cancelled() }}run: moodle-plugin-ci --ansi codechecker- name: validateif: ${{ !cancelled() }}run: moodle-plugin-ci --ansi validate- name: savepointsif: ${{ !cancelled() }}run: moodle-plugin-ci --ansi savepoints- name: gruntif: ${{ !cancelled() }}run: moodle-plugin-ci --ansi grunt || true- name: mustacheif: ${{ !cancelled() }}run: moodle-plugin-ci --ansi mustache- name: phpunitif: ${{ !cancelled() }}run: moodle-plugin-ci --ansi phpunit --coverage-text --coverage-clover- name: behatif: ${{ !cancelled() }}run: moodle-plugin-ci --ansi behat --profile=chrome- name: privacyif: ${{ !cancelled() }}run: vendor/bin/phpunit --colors --no-coverage --testsuite tool_dataprivacy_testsuite,tool_policy_testsuite,core_privacy_testsuiteworking-directory: moodle- name: coverallsif: ${{ !cancelled() }}run: moodle-plugin-ci coveralls-upload || trueenv:COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}