Skip to content
Merged
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
38 changes: 16 additions & 22 deletions .github/workflows/moodle-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,16 @@ on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

services:
postgres:
image: postgres:13.0
env:
POSTGRES_USER: 'postgres'
POSTGRES_HOST_AUTH_METHOD: 'trust'
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 3
mariadb:
image: mariadb:10.6.7
image: mariadb:10.6.18
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
Expand All @@ -28,22 +22,13 @@ jobs:
fail-fast: false
matrix:
include:
- php: '8.0'
moodle-branch: 'MOODLE_402_STABLE'
database: 'mariadb'
- php: '8.0'
moodle-branch: 'MOODLE_402_STABLE'
database: 'pgsql'
- php: '7.4'
moodle-branch: 'MOODLE_402_STABLE'
moodle-branch: 'MOODLE_401_STABLE'
database: 'mariadb'
Comment thread
matasarei marked this conversation as resolved.
- php: '7.4'
moodle-branch: 'MOODLE_402_STABLE'
database: 'pgsql'

steps:
- name: Check out repository code
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
path: plugin

Expand All @@ -56,7 +41,7 @@ jobs:

- name: Initialise 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.5
echo $(cd ci/bin; pwd) >> $GITHUB_PATH
echo $(cd ci/vendor/bin; pwd) >> $GITHUB_PATH
sudo locale-gen en_AU.UTF-8
Expand All @@ -82,6 +67,7 @@ jobs:

- name: Moodle Code Checker
if: ${{ always() }}
continue-on-error: true
run: moodle-plugin-ci codechecker --max-warnings 0

- name: Moodle PHPDoc Checker
Expand All @@ -100,6 +86,14 @@ jobs:
if: ${{ always() }}
run: moodle-plugin-ci mustache || true

- name: Refine Stylelint Rules
if: ${{ always() }}
run: |
if [ -f moodle/.stylelintrc ]; then
mv moodle/.stylelintrc moodle/.stylelintrc-core
echo '{"extends": "./.stylelintrc-core", "rules": {"declaration-no-important": null, "no-unknown-animations": null}}' > moodle/.stylelintrc
fi

- name: Grunt
if: ${{ always() }}
run: moodle-plugin-ci grunt
Expand Down
6 changes: 3 additions & 3 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@

$plugin->version = 2024080300; // This component release level.
$plugin->maturity = MATURITY_STABLE; // This version's maturity level.
$plugin->release = 'v4.3.4'; // This version's release version.
$plugin->requires = 2022041200; // This version's moodle require release.
$plugin->release = 'v4.3.4'; // Theme release version (independent of Moodle core version).
$plugin->requires = 2022112800; // This version's required Moodle version.
$plugin->component = 'theme_academi'; // This component type_name.
Comment thread
matasarei marked this conversation as resolved.
$plugin->dependencies = [
'theme_boost' => 2022041900, // This version depended the component and its require release.
'theme_boost' => 2022112800, // Depends on this component and its required version.
];
Comment thread
matasarei marked this conversation as resolved.
Loading