diff --git a/.github/workflows/moodle-ci.yml b/.github/workflows/moodle-ci.yml index f14e35e..67c0f84 100644 --- a/.github/workflows/moodle-ci.yml +++ b/.github/workflows/moodle-ci.yml @@ -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 @@ -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' - - 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 @@ -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 @@ -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 @@ -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 diff --git a/version.php b/version.php index d6df937..6e43a6e 100644 --- a/version.php +++ b/version.php @@ -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. $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. ];