diff --git a/.github/actions/fauna-docker/Dockerfile b/.github/actions/fauna-docker/Dockerfile new file mode 100644 index 00000000..ccbed0a3 --- /dev/null +++ b/.github/actions/fauna-docker/Dockerfile @@ -0,0 +1,7 @@ +FROM fauna/faunadb:latest + +COPY faunadb.config /etc/faunadb.yml +COPY feature-flags.json /etc/feature-flag-periodic.d/feature-flags.json + +ENTRYPOINT ["/entrypoint.sh", "--config", "/etc/faunadb.yml"] + diff --git a/.github/actions/fauna-docker/action.yml b/.github/actions/fauna-docker/action.yml new file mode 100644 index 00000000..6fad9c66 --- /dev/null +++ b/.github/actions/fauna-docker/action.yml @@ -0,0 +1,6 @@ +# action.yml +name: 'FaunaDB testgin' +runs: + using: 'docker' + image: 'Dockerfile' + diff --git a/.github/actions/fauna-docker/faunadb.config b/.github/actions/fauna-docker/faunadb.config new file mode 100644 index 00000000..30f4ebcc --- /dev/null +++ b/.github/actions/fauna-docker/faunadb.config @@ -0,0 +1 @@ +flags_path: /etc/feature-flag-periodic.d/feature-flags.json diff --git a/.github/actions/fauna-docker/feature-flags.json b/.github/actions/fauna-docker/feature-flags.json new file mode 100644 index 00000000..2fc48a0a --- /dev/null +++ b/.github/actions/fauna-docker/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 + } + } + ] +} diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 3495ee27..e6b19ec5 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -34,13 +34,12 @@ jobs: container: image: python:${{ matrix.python-version}} - services: - core: - image: ${{ matrix.fauna-docker-service.name }} - steps: - uses: actions/checkout@v3 + - name: List images + run: docker image ls + - name: Show file descriptor limit run: ulimit -a diff --git a/.github/workflows/faunadb.config b/.github/workflows/faunadb.config new file mode 100644 index 00000000..30f4ebcc --- /dev/null +++ b/.github/workflows/faunadb.config @@ -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 + } + } + ] +}