Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

22 changes: 0 additions & 22 deletions .gitattributes

This file was deleted.

52 changes: 25 additions & 27 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,30 @@ on: [push, pull_request]

jobs:
test:
runs-on: 'ubuntu-latest'
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- php: '7.4'
moodle-branch: 'MOODLE_311_STABLE'
- php: '8.3'
moodle-branch: 'MOODLE_405_STABLE'
database: 'pgsql'
- php: '8.2'
moodle-branch: 'MOODLE_404_STABLE'
database: 'mariadb'
- php: '8.1'
moodle-branch: 'MOODLE_403_STABLE'
database: 'pgsql'
- php: '8.1'
moodle-branch: 'MOODLE_402_STABLE'
database: 'mariadb'
node: '14.15.0'
- php: '7.3'
moodle-branch: 'MOODLE_310_STABLE'
- php: '8.0'
moodle-branch: 'MOODLE_401_STABLE'
database: 'pgsql'
node: '14.15.0'

services:
postgres:
image: postgres
image: postgres:13
env:
POSTGRES_USER: 'postgres'
POSTGRES_HOST_AUTH_METHOD: 'trust'
Expand All @@ -32,7 +39,7 @@ jobs:
- 5432:5432

mariadb:
image: mariadb
image: mariadb:10.6
env:
MYSQL_USER: 'root'
MYSQL_ALLOW_EMPTY_PASSWORD: "true"
Expand All @@ -42,29 +49,28 @@ jobs:

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

- name: Install node
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: zip, gd, mbstring, pgsql, mysqli
extensions: mbstring, pgsql, mysqli
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
composer create-project -n --no-dev --prefer-dist moodlehq/moodle-plugin-ci ci ^4
# 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
Expand All @@ -76,14 +82,6 @@ jobs:
if: ${{ always() }}
run: moodle-plugin-ci phplint

- name: phpcpd
if: ${{ always() }}
run: moodle-plugin-ci phpcpd || true

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

- name: codechecker
if: ${{ always() }}
run: moodle-plugin-ci codechecker
Expand All @@ -102,11 +100,11 @@ jobs:

- name: mustache
if: ${{ always() }}
run: moodle-plugin-ci mustache
run: moodle-plugin-ci mustache || true

- name: grunt
if: ${{ always() }}
run: moodle-plugin-ci grunt
run: moodle-plugin-ci grunt || true

- name: phpunit
if: ${{ always() }}
Expand Down
42 changes: 0 additions & 42 deletions .gitignore

This file was deleted.

1 change: 0 additions & 1 deletion .jshintignore

This file was deleted.

7 changes: 0 additions & 7 deletions .jshintrc

This file was deleted.

62 changes: 0 additions & 62 deletions .travis.yml

This file was deleted.

144 changes: 0 additions & 144 deletions Gruntfile.js

This file was deleted.

Loading