diff --git a/.github/workflows/cron.yml b/.github/workflows/cron.yml index f45d618..2014b3f 100644 --- a/.github/workflows/cron.yml +++ b/.github/workflows/cron.yml @@ -9,12 +9,22 @@ jobs: name: ci 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.1'] - database: ['mysqli'] + php: ['8.3'] + database: ['pgsql'] steps: - name: checkout plugin @@ -35,10 +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 - 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 }} @@ -82,14 +91,3 @@ jobs: - name: behat if: ${{ !cancelled() }} run: moodle-plugin-ci --ansi behat --profile=chrome - - - name: privacy - if: ${{ !cancelled() }} - run: vendor/bin/phpunit --colors --no-coverage --testsuite tool_dataprivacy_testsuite,tool_policy_testsuite,core_privacy_testsuite - working-directory: moodle - - - name: coveralls - if: ${{ !cancelled() }} - run: moodle-plugin-ci coveralls-upload || true - env: - COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/infection.yml b/.github/workflows/infection.yml index 50cd9f4..b95ae48 100644 --- a/.github/workflows/infection.yml +++ b/.github/workflows/infection.yml @@ -4,15 +4,25 @@ on: [push, pull_request] jobs: ci: - name: ci + name: infection 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.3'] - database: ['mysqli'] + moodle-branch: [main] + php: [8.3] + database: [pgsql] steps: - name: checkout plugin @@ -34,10 +44,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 - 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 }} diff --git a/README.md b/README.md index 09b04c6..8a4540f 100755 --- a/README.md +++ b/README.md @@ -66,7 +66,7 @@ This plugin is maintained for the latest major releases of Moodle. ## Copyright -eWallah.net +eWallah This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software