Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
789baeb
Correction a typo
KadeerCanada Dec 8, 2021
159ab73
Moodle 4.0 monologo.
lucaboesch Oct 1, 2022
a4fbb47
Update README.md and create GitHub Actions.
lucaboesch Oct 30, 2022
4b66885
CONTRIB-8227 Memory overflow
DavidGlasgow Nov 22, 2022
92332e1
Removing code that prints intro box (redundant in 4.0+)
bostelm Nov 25, 2022
a53ab68
Merge pull request #47 from lucaboesch/monologo
bostelm Nov 25, 2022
65eddc8
Merge pull request #48 from lucaboesch/readmeandactions
bostelm Nov 25, 2022
02e5b33
Merge pull request #46 from KadeerCanada/patch-1
bostelm Nov 25, 2022
ae4e0b0
CONTRIB-8013 Scalability of event ids for large sites
bostelm Dec 2, 2022
2f05556
CONTRIB-7992 Create repeated slots: avoid infinite loop
bostelm Dec 3, 2022
f7dfd11
CONTRIB-8199 privacy provider: add missing import
bostelm Dec 3, 2022
756b5c2
Cleaning up behat tests for 4.1
bostelm Dec 3, 2022
c289f6a
Removing @javascript tag from some behat tests that do not need it
bostelm Dec 3, 2022
d4e3897
Achieving green pill in plugins db.
lucaboesch Nov 26, 2022
c31a8c7
Merge pull request #51 from lucaboesch/greenpill
bostelm Dec 3, 2022
9efbf0e
Improvements to Behat tests
bostelm Dec 4, 2022
9bd46a7
CONTRIB-8054 slot forms: fix RTL problem with time ranges
bostelm Dec 4, 2022
406adcc
code style fixes
bostelm Dec 4, 2022
de783a5
Serialization of 'Closure' is not allowed
DavidGlasgow Dec 8, 2022
b4d301d
Fix attachments not viewable
justusdieckmann Mar 30, 2023
e7a0efc
Disabling a test that is currently not feasible
bostelm Apr 28, 2023
cd32880
Merge pull request #53 from justusdieckmann/fix/attachments
bostelm Apr 28, 2023
e73add7
workflow must use PHP 8.0
bostelm Apr 28, 2023
fe027c3
workflow and code style
bostelm Apr 28, 2023
2360039
Bumping release number beyond 4.0 branch
bostelm May 23, 2023
0219ce9
Updating README file from 4.0 release
bostelm May 23, 2023
69ed7a2
requiring javascript for one unit test more
bostelm May 24, 2023
332a0b3
CONTRIB-8227 fixes
DavidGlasgow Jun 15, 2023
1eff481
CONTRIB-8227 Memory overflow
DavidGlasgow Nov 22, 2022
06ff8c8
Serialization of 'Closure' is not allowed
DavidGlasgow Dec 8, 2022
ba906cb
CONTRIB-8227 fixes
DavidGlasgow Jun 15, 2023
5ddda3a
Merge branch 'CONTRIB-8227' of https://github.com/DavidGlasgow/moodle…
DavidGlasgow Jun 15, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
119 changes: 119 additions & 0 deletions .github/workflows/moodle-plugin-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
name: Moodle plugin CI
on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- php: '8.0'
moodle-branch: 'master'
database: 'pgsql'
- php: '8.0'
moodle-branch: 'master'
database: 'mariadb'

services:
postgres:
image: postgres:14
env:
POSTGRES_USER: 'postgres'
POSTGRES_HOST_AUTH_METHOD: 'trust'
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 3
ports:
- 5432:5432

mariadb:
image: mariadb:10
env:
MYSQL_USER: 'root'
MYSQL_ALLOW_EMPTY_PASSWORD: "true"
MYSQL_CHARACTER_SET_SERVER: "utf8mb4"
MYSQL_COLLATION_SERVER: "utf8mb4_unicode_ci"
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval 10s --health-timeout 5s --health-retries 3

steps:
- name: Checkout
uses: actions/checkout@v3
with:
path: plugin

- name: Setup PHP ${{ matrix.php }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: ${{ matrix.extensions }}
ini-values: max_input_vars=5000
coverage: none

- name: Deploy moodle-plugin-ci
run: |
composer create-project -n --no-dev --prefer-dist moodlehq/moodle-plugin-ci ci ^3
# Add dirs to $PATH
echo $(cd ci/bin; pwd) >> $GITHUB_PATH
echo $(cd ci/vendor/bin; pwd) >> $GITHUB_PATH
# PHPUnit depends on en_AU.UTF-8 locale
sudo locale-gen en_AU.UTF-8
echo "NVM_DIR=$HOME/.nvm" >> $GITHUB_ENV

- name: Install Moodle
# Need explicit IP to stop mysql client fail on attempt to use unix socket.
run: moodle-plugin-ci install --plugin ./plugin --db-host=127.0.0.1
env:
DB: ${{ matrix.database }}
MOODLE_BRANCH: ${{ matrix.moodle-branch }}
IGNORE_PATHS: 'templates/local/mobile'

- name: PHP Lint
if: ${{ always() }}
run: moodle-plugin-ci phplint

- name: PHP Copy/Paste Detector
continue-on-error: true # This step will show errors but will not fail
if: ${{ always() }}
run: moodle-plugin-ci phpcpd

- name: PHP Mess Detector
continue-on-error: true # This step will show errors but will not fail
if: ${{ always() }}
run: moodle-plugin-ci phpmd

- name: Moodle Code Checker
if: ${{ always() }}
run: moodle-plugin-ci codechecker

- name: Moodle PHPDoc Checker
if: ${{ always() }}
run: moodle-plugin-ci phpdoc

- name: Validating
if: ${{ always() }}
run: moodle-plugin-ci validate

- name: Check upgrade savepoints
if: ${{ always() }}
run: moodle-plugin-ci savepoints

- name: Mustache Lint
if: ${{ always() }}
run: moodle-plugin-ci mustache

- name: Grunt
if: ${{ always() }}
run: moodle-plugin-ci grunt --max-lint-warnings 0

- name: PHPUnit tests
if: ${{ always() }}
run: moodle-plugin-ci phpunit

- name: Behat features
if: ${{ always() }}
run: moodle-plugin-ci behat --profile chrome
48 changes: 0 additions & 48 deletions .travis.yml

This file was deleted.

Loading