Skip to content

Commit

Permalink
Smaller monologo icon for Moodle ≥ 4.4.
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaboesch committed Jun 3, 2024
1 parent 62dc7b2 commit 3a14fbb
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 36 deletions.
70 changes: 62 additions & 8 deletions .github/workflows/moodle-plugin-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,66 @@ jobs:
fail-fast: false
matrix:
include:
- php: '8.1'
moodle-branch: 'MOODLE_404_STABLE'
database: pgsql
- php: '8.2'
moodle-branch: 'MOODLE_404_STABLE'
database: pgsql
- php: '8.3'
moodle-branch: 'MOODLE_404_STABLE'
database: pgsql
- php: '8.1'
moodle-branch: 'MOODLE_404_STABLE'
database: mariadb
- php: '8.2'
moodle-branch: 'MOODLE_404_STABLE'
database: mariadb
- php: '8.3'
moodle-branch: 'MOODLE_404_STABLE'
database: mariadb
- php: '8.0'
moodle-branch: 'master'
database: 'pgsql'
moodle-branch: 'MOODLE_403_STABLE'
database: pgsql
- php: '8.1'
moodle-branch: 'MOODLE_403_STABLE'
database: pgsql
- php: '8.2'
moodle-branch: 'MOODLE_403_STABLE'
database: pgsql
- php: '8.0'
moodle-branch: 'master'
database: 'mariadb'
moodle-branch: 'MOODLE_403_STABLE'
database: mariadb
- php: '8.1'
moodle-branch: 'MOODLE_403_STABLE'
database: mariadb
- php: '8.2'
moodle-branch: 'MOODLE_403_STABLE'
database: mariadb
- php: '8.0'
moodle-branch: 'MOODLE_402_STABLE'
database: pgsql
- php: '8.1'
moodle-branch: 'MOODLE_402_STABLE'
database: pgsql
- php: '8.0'
moodle-branch: 'MOODLE_402_STABLE'
database: mariadb
- php: '8.1'
moodle-branch: 'MOODLE_402_STABLE'
database: mariadb
- php: '8.0'
moodle-branch: 'MOODLE_401_STABLE'
database: pgsql
- php: '7.4'
moodle-branch: 'MOODLE_401_STABLE'
database: pgsql
- php: '8.0'
moodle-branch: 'MOODLE_401_STABLE'
database: mariadb
- php: '7.4'
moodle-branch: 'MOODLE_401_STABLE'
database: mariadb

services:
postgres:
Expand All @@ -30,7 +84,7 @@ jobs:
- 5432:5432

mariadb:
image: mariadb:10
image: mariadb:10.6
env:
MYSQL_USER: 'root'
MYSQL_ALLOW_EMPTY_PASSWORD: "true"
Expand All @@ -42,7 +96,7 @@ jobs:

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

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

- 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
Expand Down Expand Up @@ -88,7 +142,7 @@ jobs:

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

- name: Moodle PHPDoc Checker
if: ${{ always() }}
Expand Down
28 changes: 1 addition & 27 deletions pix/monologo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion renderable.php
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ public function action_link(moodle_url $url, $titlekey, $iconkey, $confirmkey =
$confirmaction = new confirm_action(get_string($confirmkey, 'scheduler'));
}
$act = new action_link($url, $title, $confirmaction, $attributes, $pix);
$act->primary = false;
$act->attributes['primary'] = false;
return $act;
}

Expand Down

0 comments on commit 3a14fbb

Please sign in to comment.