From f4faa9aef0977817ad39077357c8c75b4fc16e38 Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Wed, 21 Jul 2021 22:14:01 +1200 Subject: [PATCH] add core privacy unit tests (#541) * add core privacy unit tests * bump mariadb and postgres versions --- .github/workflows/ci.yml | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ea18f91..5dfb9f9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest services: postgres: - image: postgres:9.6 + image: postgres:10 env: POSTGRES_USER: 'postgres' POSTGRES_HOST_AUTH_METHOD: 'trust' @@ -17,7 +17,7 @@ jobs: - 5432:5432 options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 3 mariadb: - image: mariadb:10 + image: mariadb:10.5 env: MYSQL_USER: 'root' MYSQL_ALLOW_EMPTY_PASSWORD: "true" @@ -66,36 +66,51 @@ jobs: MOODLE_BRANCH: 'master' - name: Run phplint + if: ${{ always() }} run: moodle-plugin-ci phplint - name: Run phpcpd + if: ${{ always() }} run: moodle-plugin-ci phpcpd || true - name: Run phpmd + if: ${{ always() }} run: moodle-plugin-ci phpmd - name: Run codechecker + if: ${{ always() }} run: moodle-plugin-ci codechecker - name: Run validate + if: ${{ always() }} run: moodle-plugin-ci validate - name: Run savepoints + if: ${{ always() }} run: moodle-plugin-ci savepoints - name: Run mustache + if: ${{ always() }} run: moodle-plugin-ci phpcpd || true env: MUSTACHE_IGNORE_NAMES: mobile_teacher_form.mustache - name: Run grunt + if: ${{ always() }} run: moodle-plugin-ci grunt - name: Run phpdoc + if: ${{ always() }} run: moodle-plugin-ci phpdoc - name: Run phpunit - run: moodle-plugin-ci phpunit + if: ${{ always() }} + run: | + moodle-plugin-ci phpunit + cd moodle + vendor/bin/phpunit --fail-on-risky --disallow-test-output --filter tool_dataprivacy_metadata_registry_testcase + vendor/bin/phpunit --fail-on-risky --disallow-test-output --testsuite core_privacy_testsuite --filter provider_testcase - name: Run behat - run: moodle-plugin-ci behat --profile chrome \ No newline at end of file + if: ${{ always() }} + run: moodle-plugin-ci behat --profile chrome