GitHub Action
Fauna DB IaC
v1.0
Latest version
This fork has been intentionally pushed to marketplace to continue development in my internal team and may not be used in production by others.
It will be deleted from marketplace once the PR on Shadid12/fauna-action is merged.
This action gives you the ability to manage your Fauna resources in the CI/CD pipeline through Fauna Schema Language. Using this action you are able to
- create, update, delete databases
- manage collections
- manage user defined function
- manage database access
- automate integration testing
Create a new fauna schema file (i.e. myshema.fsl
) in your project. Add the github action as a step as follows
# ...
steps:
- name: run fauna_db_actions
uses: Shadid12/[email protected]
with:
node-version: '20'
fauna-secret-key: ${{ secrets.FAUNA_SECRET_KEY }}
schema-directory: './'
# ...
steps:
- name: run fauna_db_actions
uses: Shadid12/[email protected]
with:
...
package-manager: pnpm
...
Based on the schema the action will apply the changes in your database.