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 12, 2024
1 parent 096258a commit 0a69ed6
Show file tree
Hide file tree
Showing 2 changed files with 84 additions and 3 deletions.
60 changes: 57 additions & 3 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
# Run in all these versions of Python
# current and last three python versions
python-version:
- "3.12"
- "3.11"
- "3.10"
# - "3.12"
# - "3.11"
# - "3.10"
- "3.9"
fauna-docker-service:
- name: "fauna/faunadb:latest"
Expand All @@ -37,10 +37,64 @@ jobs:
services:
core:
image: ${{ matrix.fauna-docker-service.name }}
volumes:
- /__w/fauna-python/fauna-python/.github/workflows/feature-flags.json:/etc/feature-flag-periodic.d/feature-flags.json
options: --name core

steps:
- uses: actions/checkout@v3

- name: test
run: echo $GITHUB_WORKSPACE
- name: test
run: ls -la ${{ github.action_path }}/
- name: test
run: ls -la ${{ github.action_path }}/github/
- name: test
run: ls -la ${{ github.action_path }}/github/home/
- name: test
run: ls -la ${{ github.action_path }}/github/workflow/
- name: test
run: ls -la $GITHUB_WORKSPACE/.github/
- name: test
run: ls -la $GITHUB_WORKSPACE/.github/workflows/
- name: test
run: cat $GITHUB_WORKSPACE/.github/workflows/feature-flags.json
- name: test
run: |
echo <<EOF
{
"version": 2,
"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
}
}
]
}
EOF > $GITHUB_WORKSPACE/.github/workflows/feature-flags.json
- name: test
run: cat /__w/fauna-python/fauna-python/.github/workflows/feature-flags.json

- name: Show file descriptor limit
run: ulimit -a

Expand Down
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 0a69ed6

Please sign in to comment.