diff options
author | Hillery Shay <shaysquared@gmail.com> | 2021-10-18 08:14:12 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-18 08:14:12 -0700 |
commit | 7d70582eb0e0b9656e64e827eca6dfc2533b8ae1 (patch) | |
tree | 75b6a34458f529ca000522757c70c4047afccfd3 /.github/workflows/tests.yml | |
parent | Don't remove local users from dir when the leave their last room (#11103) (diff) | |
download | synapse-7d70582eb0e0b9656e64e827eca6dfc2533b8ae1.tar.xz |
Fix broken export-data admin command and add a test for it to CI (#11078)
Fix broken export-data admin command and add a test for it to CI
Diffstat (limited to '.github/workflows/tests.yml')
-rw-r--r-- | .github/workflows/tests.yml | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 9e302bf446..8d7e8cafd9 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -253,6 +253,35 @@ jobs: /logs/results.tap /logs/**/*.log* + export-data: + if: ${{ !failure() && !cancelled() }} # Allow previous steps to be skipped, but not fail + needs: [linting-done, portdb] + runs-on: ubuntu-latest + env: + TOP: ${{ github.workspace }} + + services: + postgres: + image: postgres + ports: + - 5432:5432 + env: + POSTGRES_PASSWORD: "postgres" + POSTGRES_INITDB_ARGS: "--lc-collate C --lc-ctype C --encoding UTF8" + options: >- + --health-cmd pg_isready + --health-interval 10s + --health-timeout 5s + --health-retries 5 + + steps: + - uses: actions/checkout@v2 + - run: sudo apt-get -qq install xmlsec1 + - uses: actions/setup-python@v2 + with: + python-version: "3.9" + - run: .ci/scripts/test_export_data_command.sh + portdb: if: ${{ !failure() && !cancelled() }} # Allow previous steps to be skipped, but not fail needs: linting-done |