Skip to content

Commit

Permalink
Removed action
Browse files Browse the repository at this point in the history
  • Loading branch information
ponlawat-w committed Nov 4, 2023
1 parent b3f6d66 commit 2b5e802
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 106 deletions.
96 changes: 0 additions & 96 deletions .github/actions/ci-prepare/action.yml

This file was deleted.

65 changes: 55 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,17 +106,62 @@ jobs:
ref: ${{ github.ref }}
sparse-checkout: .github

- name: Preparation
uses: ./.github/actions/ci-prepare
- name: Setup PHP ${{ matrix.php }}
uses: shivammathur/setup-php@v2
with:
moodle: ${{ matrix.moodle }}
php: ${{ matrix.php }}
db: ${{ matrix.db }}
accessibility-branch: ${{ inputs.accessibility-branch }}
widget-backgroundcolour-branch: ${{ needs.set-widget-versions.outputs.widget-backgroundcolour-branch }}
widget-fontface-branch: ${{ needs.set-widget-versions.outputs.widget-fontface-branch }}
widget-fontsize-branch: ${{ needs.set-widget-versions.outputs.widget-fontsize-branch }}
widget-textcolour-branch: ${{ needs.set-widget-versions.outputs.widget-textcolour-branch }}
php-version: ${{ matrix.php }}
extensions:
ini-values: max_input_vars=5000
# If you are not using code coverage, keep "none". Otherwise, use "pcov" (Moodle 3.10 and up) or "xdebug".
# If you try to use code coverage with "none", it will fallback to phpdbg (which has known problems).
coverage: none

- name: Checkout Accessibility Plugin
uses: actions/checkout@v4
with:
path: plugin
ref: ${{ inputs.accessibility-branch }}

- name: 'Checkout Widget: backgroundcolour'
uses: actions/checkout@v4
with:
repository: ponlawat-w/moodle-accessibility_backgroundcolour
path: plugin/widgets/backgroundcolour
ref: ${{ inputs.widget-backgroundcolour-branch }}
- name: 'Checkout Widget: fontface'
uses: actions/checkout@v4
with:
repository: ponlawat-w/moodle-accessibility_fontface
path: plugin/widgets/fontface
ref: ${{ inputs.widget-fontface-branch }}
- name: 'Checkout Widget: fontsize'
uses: actions/checkout@v4
with:
repository: ponlawat-w/moodle-accessibility_fontsize
path: plugin/widgets/fontsize
ref: ${{ inputs.widget-fontsize-branch }}
- name: 'Checkout Widget: textcolour'
uses: actions/checkout@v4
with:
repository: ponlawat-w/moodle-accessibility_textcolour
path: plugin/widgets/textcolour
ref: ${{ inputs.widget-textcolour-branch }}

- name: Initialise moodle-plugin-ci
shell: bash
run: |
composer create-project -n --no-dev --prefer-dist moodlehq/moodle-plugin-ci ci ^4
echo $(cd ci/bin; pwd) >> $GITHUB_PATH
echo $(cd ci/vendor/bin; pwd) >> $GITHUB_PATH
sudo locale-gen en_AU.UTF-8
echo "NVM_DIR=$HOME/.nvm" >> $GITHUB_ENV
- name: Install moodle-plugin-ci
shell: bash
run: moodle-plugin-ci install --plugin ./plugin --db-host 127.0.0.1
env:
DB: ${{ matrix.db }}
MOODLE_BRANCH: ${{ matrix.moodle }}

- name: PHP Lint
if: ${{ !cancelled() }}
Expand Down

0 comments on commit 2b5e802

Please sign in to comment.