Skip to content

Commit

Permalink
version update
Browse files Browse the repository at this point in the history
  • Loading branch information
rdebleu committed Oct 14, 2023
1 parent 9c439d6 commit 30cefb1
Show file tree
Hide file tree
Showing 5 changed files with 101 additions and 84 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,56 +44,56 @@ jobs:
MOODLE_BRANCH: ${{ matrix.moodle-branch }}

- name: phplint
if: ${{ always() }}
if: ${{ !cancelled() }}
run: moodle-plugin-ci --ansi phplint

- name: phpcpd
if: ${{ always() }}
if: ${{ !cancelled() }}
run: moodle-plugin-ci --ansi phpcpd

- name: phpmd
if: ${{ always() }}
if: ${{ !cancelled() }}
run: moodle-plugin-ci --ansi phpmd

- name: phpdoc
if: ${{ always() }}
if: ${{ !cancelled() }}
run: moodle-plugin-ci --ansi phpdoc

- name: codechecker
if: ${{ always() }}
if: ${{ !cancelled() }}
run: moodle-plugin-ci --ansi codechecker

- name: validate
if: ${{ always() }}
if: ${{ !cancelled() }}
run: moodle-plugin-ci --ansi validate

- name: savepoints
if: ${{ always() }}
if: ${{ !cancelled() }}
run: moodle-plugin-ci --ansi savepoints

- name: grunt
if: ${{ always() }}
if: ${{ !cancelled() }}
run: moodle-plugin-ci --ansi grunt

- name: mustache
if: ${{ always() }}
if: ${{ !cancelled() }}
run: moodle-plugin-ci --ansi mustache

- name: phpunit
if: ${{ always() }}
if: ${{ !cancelled() }}
run: moodle-plugin-ci --ansi phpunit --coverage-text --coverage-clover

- name: behat
if: ${{ always() }}
if: ${{ !cancelled() }}
run: moodle-plugin-ci --ansi behat --profile=chrome

- name: privacy
if: ${{ always() }}
if: ${{ !cancelled() }}
run: vendor/bin/phpunit --colors --no-coverage --testsuite tool_dataprivacy_testsuite,tool_policy_testsuite,core_privacy_testsuite
working-directory: moodle

- name: coveralls
if: ${{ always() }}
if: ${{ !cancelled() }}
run: moodle-plugin-ci coveralls-upload
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56 changes: 33 additions & 23 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ jobs:
strategy:
fail-fast: false
matrix:
moodle-branch: ['MOODLE_401_STABLE', 'MOODLE_402_STABLE', 'master']
php: ['8.0', '8.1']
moodle-branch: ['MOODLE_401_STABLE', 'MOODLE_402_STABLE', 'MOODLE_403_STABLE', 'master']
database: ['mariadb', 'pgsql']
include:
- php: '7.4'
moodle-branch: 'MOODLE_401_STABLE'
database: 'pgsql'
- php: '8.2'
moodle-branch: 'MOODLE_402_STABLE'
moodle-branch: 'MOODLE_403_STABLE'
database: 'pgsql'

steps:
Expand Down Expand Up @@ -68,67 +68,77 @@ jobs:
MOODLE_BRANCH: ${{ matrix.moodle-branch }}

- name: phplint
if: ${{ always() }}
if: ${{ !cancelled() }}
run: moodle-plugin-ci --ansi phplint

- name: phpcpd
if: ${{ always() }}
if: ${{ !cancelled() }}
run: moodle-plugin-ci --ansi phpcpd

- name: phpmd
if: ${{ always() }}
if: ${{ !cancelled() }}
run: moodle-plugin-ci --ansi phpmd

- name: phpdoc
if: ${{ always() }}
if: ${{ !cancelled() }}
run: moodle-plugin-ci --ansi phpdoc

- name: codechecker
if: ${{ always() }}
if: ${{ !cancelled() }}
run: moodle-plugin-ci --ansi codechecker

- name: validate
if: ${{ always() }}
if: ${{ !cancelled() }}
run: moodle-plugin-ci --ansi validate

- name: savepoints
if: ${{ always() }}
if: ${{ !cancelled() }}
run: moodle-plugin-ci --ansi savepoints

- name: grunt
if: ${{ always() }}
if: ${{ !cancelled() }}
run: moodle-plugin-ci --ansi grunt

- name: mustache
if: ${{ always() }}
if: ${{ !cancelled() }}
run: moodle-plugin-ci --ansi mustache

- name: phpunit
if: ${{ always() }}
if: ${{ !cancelled() }}
run: moodle-plugin-ci --ansi phpunit --coverage-text --coverage-clover

- name: privacy
if: ${{ !cancelled() }}
run: vendor/bin/phpunit --colors --no-coverage --testsuite tool_dataprivacy_testsuite,tool_policy_testsuite,core_privacy_testsuite
working-directory: moodle

- name: coveralls
run: moodle-plugin-ci coveralls-upload || true
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: firefox
if: ${{ always() }}
if: ${{ !cancelled() }}
run: moodle-plugin-ci --ansi behat

- name: chrome
if: ${{ always() }}
if: ${{ !cancelled() }}
run: moodle-plugin-ci --ansi behat --profile chrome

- name: firefox classic
if: ${{ always() }}
if: ${{ !cancelled() }}
run: moodle-plugin-ci --ansi behat --suite="classic"

- name: chrome classic
if: ${{ always() }}
if: ${{ !cancelled() }}
run: moodle-plugin-ci --ansi behat --suite="classic" --profile chrome

- name: privacy
if: ${{ always() }}
run: vendor/bin/phpunit --colors --no-coverage --testsuite tool_dataprivacy_testsuite,tool_policy_testsuite,core_privacy_testsuite
- name: admin bookmarks
if: ${{ !cancelled() }}
run: moodle-plugin-ci --ansi behat --auto-rerun=0 --profile chrome blocks/admin_bookmarks
working-directory: moodle

- name: coveralls
run: moodle-plugin-ci coveralls-upload || true
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: admin xmldb
if: ${{ !cancelled() }}
run: moodle-plugin-ci --ansi behat --auto-rerun=0 --profile chrome admin/tool/xmldb
working-directory: moodle
45 changes: 0 additions & 45 deletions phpunit.xml

This file was deleted.

51 changes: 51 additions & 0 deletions tests/phpunit.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../../lib/phpunit/phpunit.xsd"
bootstrap="../../../lib/phpunit/bootstrap.php"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
backupGlobals="false"
backupStaticAttributes="false"
cacheResult="false"
stopOnError="false"
stopOnFailure="false"
stopOnIncomplete="false"
stopOnSkipped="false"
beStrictAboutTestsThatDoNotTestAnything="false"
beStrictAboutOutputDuringTests="true"
>

<php>
<!--<const name="PHPUNIT_LONGTEST" value="1"/> uncomment to execute also slow or otherwise expensive tests-->
<const name="PHPUNIT_SEQUENCE_START" value="133000"/>

<!--Following constants instruct tests to fetch external test files from alternative location
or skip tests if empty, clone https://github.com/moodlehq/moodle-exttests to local web server-->
<!--<const name="TEST_EXTERNAL_FILES_HTTP_URL" value="http://download.moodle.org/unittest"/>
uncomment and alter to fetch external test files from alternative location-->
<!--<const name="TEST_EXTERNAL_FILES_HTTPS_URL" value="https://download.moodle.org/unittest"/>
uncomment and alter to fetch external test files from alternative location-->
</php>

<testsuites>
<testsuite name="report_payments_tests_testsuite">
<directory suffix="_test.php">.</directory>
</testsuite>
</testsuites>

<coverage>
<include>
<directory suffix=".php">classes</directory>
<directory suffix=".php">tests/generator</directory>
<file>externallib.php</file>
<file>lib.php</file>
<file>locallib.php</file>
<file>renderer.php</file>
<file>rsslib.php</file>
</include>
</coverage>

</phpunit>
7 changes: 4 additions & 3 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
$plugin->requires = 2022112800;
$plugin->component = 'report_payments';
$plugin->maturity = MATURITY_STABLE;
$plugin->supported = [401, 402];
$plugin->release = 'v1.0.5';
$plugin->version = 2023092500;
$plugin->supported = [401, 403];
$plugin->release = 'v1.0.6';
$plugin->version = 2023101400;

0 comments on commit 30cefb1

Please sign in to comment.