Skip to content

Commit

Permalink
mysql
Browse files Browse the repository at this point in the history
  • Loading branch information
rdebleu committed Dec 12, 2024
1 parent 764c1f2 commit 7c94208
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,25 @@ on:

jobs:
ci:
name: Cron
runs-on: ubuntu-latest

services:
postgres:
image: postgres
env:
POSTGRES_USER: 'postgres'
POSTGRES_HOST_AUTH_METHOD: 'trust'
options: --health-cmd="pg_isready" --health-interval 10s --health-timeout 5s --health-retries 5
ports:
- 5432:5432

strategy:
fail-fast: false
matrix:
moodle-branch: [main]
php: [8.2]
database: [mysqli]

name: ${{ matrix.moodle-branch }} php ${{ matrix.php }} ${{ matrix.database }}
moodle-branch: ['main']
php: ['8.3']
database: ['pgsql']

steps:
- name: checkout plugin
Expand All @@ -36,11 +45,9 @@ jobs:
echo $(cd ci/bin; pwd) >> $GITHUB_PATH
echo $(cd ci/vendor/bin; pwd) >> $GITHUB_PATH
sudo locale-gen en_AU.UTF-8
sudo systemctl start mysql.service
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
- name: install Moodle
run: moodle-plugin-ci install --db-user=root --db-pass=root --db-host=127.0.0.1 --plugin this-plugin
run: moodle-plugin-ci install -db-host=127.0.0.1 --plugin this-plugin
env:
DB: ${{ matrix.database }}
MOODLE_BRANCH: ${{ matrix.moodle-branch }}
Expand Down Expand Up @@ -71,23 +78,16 @@ jobs:

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

- name: mustache
if: ${{ !cancelled() }}
run: moodle-plugin-ci --ansi mustache

- name: phpunit
continue-on-error: true
if: ${{ !cancelled() }}
run: moodle-plugin-ci --ansi phpunit --testdox --coverage-text --coverage-clover

- name: behat
if: ${{ !cancelled() }}
run: moodle-plugin-ci --ansi behat --profile=chrome

- name: coveralls
if: ${{ !cancelled() }}
run: moodle-plugin-ci coveralls-upload
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 7c94208

Please sign in to comment.