Skip to content

Commit

Permalink
config github actions to enable stream
Browse files Browse the repository at this point in the history
  • Loading branch information
marrony committed Mar 11, 2024
1 parent 890083b commit 3323b36
Show file tree
Hide file tree
Showing 7 changed files with 72 additions and 4 deletions.
7 changes: 7 additions & 0 deletions .github/actions/fauna-docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]

6 changes: 6 additions & 0 deletions .github/actions/fauna-docker/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# action.yml
name: 'FaunaDB testgin'
runs:
using: 'docker'
image: 'Dockerfile'

1 change: 1 addition & 0 deletions .github/actions/fauna-docker/faunadb.config
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
flags_path: /etc/feature-flag-periodic.d/feature-flags.json
27 changes: 27 additions & 0 deletions .github/actions/fauna-docker/feature-flags.json
Original file line number Diff line number Diff line change
@@ -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
}
}
]
}
7 changes: 3 additions & 4 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/faunadb.config
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
flags_path: /etc/feature-flag-periodic.d/feature-flags.json
27 changes: 27 additions & 0 deletions .github/workflows/feature-flags.json
Original file line number Diff line number Diff line change
@@ -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
}
}
]
}

0 comments on commit 3323b36

Please sign in to comment.