38 Commits

Author SHA1 Message Date
Jun Pataleta
7376b6deca
MDL-82758 gha: Remove reference to the master branch 2024-08-09 16:15:03 +08:00
Simey Lameze
b1297a80df MDL-82250 core: add web installer test workflow 2024-07-23 13:33:03 +08:00
Eloy Lafuente (stronk7)
f14fdf23e3
MDL-81698 phpunit: New workflow to run tests 1by1 @ GitHub
This workflow just finds all the individual
tests available in core (all the test_ methods
in _test.php file) and runs them one by one,
with a total isolation, because each one is
executed by a different PHPUnit invocation..

Any test ending with error, will be reported
as part of the output.

Note that we are not using PHPUnit's own
isolation here, just running them one by one.
2024-05-25 17:19:51 +02:00
Huong Nguyen
34304b33f9
Merge branch 'MDL-76443-main' of https://github.com/andrewnicols/moodle 2024-02-27 09:50:55 +07:00
Eloy Lafuente (stronk7)
eec4ca8cf0
NOBUG: Avoid already closed PRs to get any comment
This is an adjustment for MDL-77166, where the auto-close PRs
workflow was introduced.

That workflow does close and lock any PR in the moodle/moodle.git repo.

We have detected that, when proceeding to lock the PRs it's
always adding a comment. But we only want that when closing the
PRs (as they are open). When the only task is to lock them (normally
old PRs that are already closed by not locked) we don't want any
comment to be added (so no notification/spam happens on those old PRs).

Luckily there is a setting for it: skip-closed-pr-comment: true

So applying for it. Note that we have run various tests in fork
repository and it seems to be working ok. Only open PRs got the
comment and closed PRs were silently locked.
2024-02-21 08:27:39 +01:00
Andrew Nicols
2cb4378cd0
MDL-76443 GitHub: Bump workflow max PHP to 8.3 2024-02-21 14:15:52 +08:00
Andrew Nicols
7b72ead9e5
MDL-80874 core: Correct repo name for PR closer 2024-02-09 15:00:56 +08:00
Sara Arjona
de632c0117
NOBUG: Fixed SVG browser compatibility 2024-02-08 16:18:01 +01:00
Jun Pataleta
081767e803
MDL-77166 core: Point to CONTRIBUTING.md file
MDL-80577 formatted CONTRIBUTING.txt and moved to CONTRIBUTING.md so
the message needs to be updated accordingly
2024-02-08 15:32:33 +08:00
Jun Pataleta
72bb1899e0
Merge branch 'MDL-77166' of https://github.com/stronk7/moodle 2024-02-08 15:32:32 +08:00
Jun Pataleta
fd25a26efb
Merge branch 'MDL-80577-main' of https://github.com/andrewnicols/moodle 2024-02-08 15:32:32 +08:00
Eloy Lafuente (stronk7)
0b9be06745
MDL-77166 core: Auto close pull requests @ GitHub
Note that we have also enabled it to be executed
via manual dispatch to be able to close currently
existing PRs.

Once everything existing is closed, it will take on
any new PR arriving. Then, we can remove the manual
dispatching, although it's not critical to leave it
there in case we want to use that workflow with other
repos.
2024-02-07 09:27:22 +01:00
Eloy Lafuente (stronk7)
0d499ce11d
MDL-80816 core: Bump actions to newer versions
All the new ones are Nodejs 20 based, because
Nodejs 16 is being deprecated @ GH environments.

https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20

Also, bump PHP version from 8.0 to 8.1, because it's a new
requirement for Moodle 4.4, and it was not modified originally.
2024-02-02 17:07:35 +01:00
Andrew Nicols
81b8aecab6
MDL-80577 core: Move pull request template 2024-01-15 22:47:45 +08:00
Andrew Nicols
ffa1843863
MDL-80577 core: Add a Moodle security policy for GH 2024-01-15 22:47:45 +08:00
Andrew Nicols
76a8b26c43
MDL-80577 core: Rewrite and update README 2024-01-15 22:47:44 +08:00
Andrew Nicols
45c816064a
MDL-78496 core: Do not run GHA on main branch 2023-11-20 20:21:12 +08:00
Andrew Nicols
5c68be9b96
MDL-78496 environment: Moodle 4.4 requirements
The only changes to requirements since Moodle 4.3 are increases to:

* the minimum PHP version required; and
* the minimum required Moodle version.
2023-11-17 21:50:28 +08:00
Andrew Nicols
2f0aac01fb
MDL-79981 core: Add ability to manually run and filter phpunit on GHA 2023-11-07 16:14:14 +08:00
Andrew Nicols
a03b0d8927
MDL-79853 core: Add phpunit options to manual runs 2023-10-26 14:48:17 +08:00
Eloy Lafuente (stronk7)
8a6cce03f3
MDL-76408 gha: Move "highest" runs from php81 to php82
Note that, for windows php82, we need to have the php-zip extension
explicitly added. So we are adding it too.

From the manual:
  "As of PHP 8.2.0, php_zip.dll DLL must be enabled in php.ini.
  Previously, this extension was built-in."
2023-08-10 19:11:23 +02:00
Eloy Lafuente (stronk7)
e1919e6793
MDL-78116 core: Run tests against Windows on GHA
Signed-off-by: Andrew Nicols <andrew@nicols.co.uk>
2023-05-04 15:39:24 +08:00
Andrew Nicols
be39b195fd Merge branch 'MDL-77434-master' of https://github.com/lameze/moodle 2023-03-03 16:01:29 +08:00
Simey Lameze
f7f3ccf06e MDL-77434 core: add a comment explaining the php versions strategy 2023-03-02 13:14:43 +08:00
Daniel Ziegenberg
7427854c11
MDL-73018 ci: Move highest PHP to 8.1 (from current 8.0)
Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
2023-02-28 11:21:48 +01:00
Eloy Lafuente (stronk7)
012a4c5cf8 MDL-74905 ci: travis and gha, raise to agreed requirements
Basically, we only need to change:
- PHP 8.0
- MySQL 8.0
- PostgreSQL 13

Also, remove any php-xmlrpc installation because they aren't
needed since Moodle 4.1.

Finally, ensure that we aren't using mysql bin logs ever, because
they are huge and can make the 1Gb tmpfs to become full. This is
specifically needed for MySQL 8.0, because it comes with bin logs
enabled by default.

We have forked the mysql-action to achieve that:

https://github.com/moodlehq/mysql-action

Worth blaming travis because, after PG 11 and 12 using port 5433,
now they are back (in PG 13) to port 5432. Surely there is some
logic behind the undocumented ping-pong but...
2023-02-03 19:48:02 +01:00
Eloy Lafuente (stronk7)
41a6551dfe MDL-75983 gha: Update used actions to be node16 compatible
Node12 is being deprecated in github for actions:

https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/

So we need to ensure we are using node16 actions.
2022-10-14 13:27:20 +02:00
Eloy Lafuente (stronk7)
027bdbfae8 MDL-75726 ci: Bump GHA to Ubuntu 22.04
Have tried to also bump Travis to 22.04 (jammy) but it
was not working ok, with problems trying to find both
PHP and PostgreSQL versions.

Surely that's because 22.04 support is really new (Sep 9, 2022):

https://blog.travis-ci.com/22-9-9-ubuntujammy

So we'll have to wait a little more before being able to, also,
bump Travis to use 22.04
2022-09-22 17:45:04 +02:00
Eloy Lafuente (stronk7)
61d091013b MDL-71747 ci: travis and gha, raise to agreed requirements
Basically, we only need to change:
- PHP 7.4
- PostgreSQL 12

Also, moving up to focal as dev environment, removing NVM_VERSION
because nvm automatically detects .nvmrc and switching to
socketed connection for PostgreSQL (little improvements).
2022-07-09 11:45:00 +02:00
Eloy Lafuente (stronk7)
b4a86ff674 MDL-73212 gha: Allow parameters to be passed via secret
We are disabling the -v (verbose) option, used by default. Still,
now we support a secret (that can be added to everyone's repository)
to accept any PHPUnit's command line options and run the tests with
them.

Some examples:

phpunit_options = -v (to keep the verbose option enabled)
phpunit_options = --testdox (to print information about every test...)

... (basically anything supported by the CLI).

Also, we are raising here the environment from Ubuntu 18.04 to 20.04

(self tested by GHA, heh)
2022-06-21 16:54:13 +02:00
Víctor Déniz
292b33fb12 MDL-73253 ci: use setup-node action in GHA 2021-12-03 15:41:12 +00:00
Eloy Lafuente (stronk7)
2ce4c0a1ee MDL-70594 ci: Bump Travis and GHA postgres to 10 2021-07-02 00:23:40 +02:00
Eloy Lafuente (stronk7)
52ef32e4ff MDL-70900 ci: Move highest PHP to 8.0 (from current 7.4)
Also adds xmlrpc-beta from PECL (PHP8 moved the extension there)
and setups max_input_vars=5000 as initial value (see MDL-71390).

Note that this also includes a tiny modification when configuring
redis sessions, because there was some outdated code from old issue,
now fixed (MDL-60978), so that info has been removed.
2021-05-07 17:42:39 +02:00
Marina Glancy
d42fd649cc MDL-71390 core: raise max_input_vars requirement 2021-05-05 10:49:59 +02:00
Eloy Lafuente (stronk7)
17ff770eaa MDL-71154 ci: Prevent upstream branches and tags to be built
Both for travis and GHA:

- master and MOODLE_XXX_STABLE branches
- any vX.Y.Z tag

won't lead to a build anymore.
2021-04-13 16:55:42 +02:00
Eloy Lafuente (stronk7)
cc0e5e223d MDL-69308 github actions: Bump min PHP requirement to 7.3 2021-01-10 23:44:47 +01:00
Eloy Lafuente (stronk7)
4b3409b7a4 MDL-70276 github actions: First cut, phpunit and grunt checks
First working version, supports phpunit (using build matrix):

- php72 (lowest), running mysql.
- php74 (highest), running postgres.

Also verifies that the branch has been "gruntified" and there
isn't any missing change (build js/css files).

TODO: Verify the remaining checks currently in .travis.yml, namely:
 - CITEST
 - Add caching
 - Better health-check for DB images.
 - Support from the tracker (satus badges and enable check).
 - Support from CiBoT (status and enable check).
 - Consider moving both the common setup (git, composer...)
   and the database (mysql, postgres) to own actions for
   easier tweaking.
2020-11-26 00:26:47 +01:00
Andrew Nicols
8080ea4e72 MDL-68318 core: Add GitHub Funding information
This links directly to our own pages relating to funding.
2020-04-20 07:57:05 +08:00