Skip to content

Commit

Permalink
Update GitHub Actions documentation (#1073)
Browse files Browse the repository at this point in the history
  • Loading branch information
scottbedard authored Dec 13, 2024
1 parent 06b1c13 commit 7afee52
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions src/content/doc-tutorials/using-github-actions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,17 @@ jobs:
- name: Git checkout
uses: actions/checkout@v4
- name: Start SurrealDB
uses: surrealdb/setup-surreal@v1
uses: surrealdb/setup-surreal@v2
with:
surrealdb_version: latest
surrealdb_port: 8000
surrealdb_username: root
surrealdb_password: root
surrealdb_auth: true
surrealdb_strict: true
surrealdb_auth: false
surrealdb_strict: false
surrealdb_log: info
surrealdb_additional_args: --allow-all
surrealdb_retry_count: 30
```
## Step 2: Customize Workflow Arguments
Expand Down Expand Up @@ -62,7 +63,7 @@ The official SurrealDB GitHub Action accepts several arguments to configure the
latest
</td>
<td scope="row" data-label="Value">
latest, v1.x.x
latest, v2.x.x
</td>
</tr>
<tr>
Expand Down Expand Up @@ -183,21 +184,22 @@ jobs:
- name: Git checkout
uses: actions/checkout@v4
- name: Start SurrealDB
uses: surrealdb/setup-surreal@v1
uses: surrealdb/setup-surreal@v2
with:
surrealdb_version: latest
surrealdb_port: 8000
surrealdb_username: root
surrealdb_password: root
surrealdb_auth: true
surrealdb_strict: true
surrealdb_log: debug
surrealdb_additional_args: --strict-mode --other-arg
surrealdb_auth: false
surrealdb_strict: false
surrealdb_log: info
surrealdb_additional_args: --allow-all
surrealdb_retry_count: 30
```
### Tips for Customization
1. **Version Control**: Use specific versions to avoid unexpected changes. Example: surrealdb_version: v1.0.0.
1. **Version Control**: Use specific versions to avoid unexpected changes. Example: surrealdb_version: v2.0.0.
2. **Security**: Always use strong passwords for surrealdb_password and avoid using default credentials in production.
3. **Logs**: Set an appropriate log level based on your needs. For debugging, use debug or trace.
4. **Additional Arguments**: Utilise surrealdb_additional_args to pass any additional CLI arguments required by your setup.
Expand All @@ -218,4 +220,3 @@ Go to your repository on GitHub and navigate to the "Actions" tab. You should se
## Conclusion

Using the official GitHub Action for SurrealDB simplifies the process of setting up and running SurrealDB in your CI/CD pipeline. Customise the workflow as per your project requirements, and ensure you follow best practices for security and version control. Happy coding!

0 comments on commit 7afee52

Please sign in to comment.