Browse Source

add core privacy unit tests (#541)

* add core privacy unit tests

* bump mariadb and postgres versions
40-behatfixes
Dan Marsden 3 years ago
committed by GitHub
parent
commit
f4faa9aef0
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 23
      .github/workflows/ci.yml

23
.github/workflows/ci.yml

@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
services: services:
postgres: postgres:
image: postgres:9.6 image: postgres:10
env: env:
POSTGRES_USER: 'postgres' POSTGRES_USER: 'postgres'
POSTGRES_HOST_AUTH_METHOD: 'trust' POSTGRES_HOST_AUTH_METHOD: 'trust'
@ -17,7 +17,7 @@ jobs:
- 5432:5432 - 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 3 options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 3
mariadb: mariadb:
image: mariadb:10 image: mariadb:10.5
env: env:
MYSQL_USER: 'root' MYSQL_USER: 'root'
MYSQL_ALLOW_EMPTY_PASSWORD: "true" MYSQL_ALLOW_EMPTY_PASSWORD: "true"
@ -66,36 +66,51 @@ jobs:
MOODLE_BRANCH: 'master' MOODLE_BRANCH: 'master'
- name: Run phplint - name: Run phplint
if: ${{ always() }}
run: moodle-plugin-ci phplint run: moodle-plugin-ci phplint
- name: Run phpcpd - name: Run phpcpd
if: ${{ always() }}
run: moodle-plugin-ci phpcpd || true run: moodle-plugin-ci phpcpd || true
- name: Run phpmd - name: Run phpmd
if: ${{ always() }}
run: moodle-plugin-ci phpmd run: moodle-plugin-ci phpmd
- name: Run codechecker - name: Run codechecker
if: ${{ always() }}
run: moodle-plugin-ci codechecker run: moodle-plugin-ci codechecker
- name: Run validate - name: Run validate
if: ${{ always() }}
run: moodle-plugin-ci validate run: moodle-plugin-ci validate
- name: Run savepoints - name: Run savepoints
if: ${{ always() }}
run: moodle-plugin-ci savepoints run: moodle-plugin-ci savepoints
- name: Run mustache - name: Run mustache
if: ${{ always() }}
run: moodle-plugin-ci phpcpd || true run: moodle-plugin-ci phpcpd || true
env: env:
MUSTACHE_IGNORE_NAMES: mobile_teacher_form.mustache MUSTACHE_IGNORE_NAMES: mobile_teacher_form.mustache
- name: Run grunt - name: Run grunt
if: ${{ always() }}
run: moodle-plugin-ci grunt run: moodle-plugin-ci grunt
- name: Run phpdoc - name: Run phpdoc
if: ${{ always() }}
run: moodle-plugin-ci phpdoc run: moodle-plugin-ci phpdoc
- name: Run phpunit - 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 - name: Run behat
run: moodle-plugin-ci behat --profile chrome if: ${{ always() }}
run: moodle-plugin-ci behat --profile chrome

Loading…
Cancel
Save