From ab9074400a54577b44e7d20a4b4b51bb4c3e1ff3 Mon Sep 17 00:00:00 2001 From: Marrony Neris Date: Mon, 11 Mar 2024 12:05:32 -0700 Subject: [PATCH] config github actions to enable stream --- .github/workflows/build_and_test.yml | 5 +++++ .github/workflows/faunadb.yml | 1 + .github/workflows/feature-flags.json | 27 +++++++++++++++++++++++++++ 3 files changed, 33 insertions(+) create mode 100644 .github/workflows/faunadb.yml create mode 100644 .github/workflows/feature-flags.json diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 3495ee27..8f68ce18 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -37,6 +37,11 @@ jobs: services: core: image: ${{ matrix.fauna-docker-service.name }} + with: + args: --config /etc/faunadb.yml + volumes: + - ${{ github.workspace }}/.github/workflows/faunadb.yml:/etc/faunadb.yml + - ${{ github.workspace }}/.github/workflows/feature-flags.json:/etc/feature-flag-periodic.d/feature-flags.json steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/faunadb.yml b/.github/workflows/faunadb.yml new file mode 100644 index 00000000..30f4ebcc --- /dev/null +++ b/.github/workflows/faunadb.yml @@ -0,0 +1 @@ +flags_path: /etc/feature-flag-periodic.d/feature-flags.json diff --git a/.github/workflows/feature-flags.json b/.github/workflows/feature-flags.json new file mode 100644 index 00000000..2fc48a0a --- /dev/null +++ b/.github/workflows/feature-flags.json @@ -0,0 +1,27 @@ +{ + "version": 1, + "properties": [ + { + "property_name": "cluster_name", + "property_value": "fauna", + "flags": { + "fql2_schema": true, + "fqlx_typecheck_default": true, + "persisted_fields": true, + "changes_by_collection_index": true, + "fql2_streams": true + } + }, + { + "property_name": "account_id", + "property_value": 0, + "flags": { + "fql2_schema": true, + "fqlx_typecheck_default": true, + "persisted_fields": true, + "changes_by_collection_index": true, + "fql2_streams": true + } + } + ] +}