Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/locona/action-sqlboiler
https://github.com/locona/action-sqlboiler
Last synced: 10 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/locona/action-sqlboiler
- Owner: locona
- Created: 2020-04-20T04:53:12.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-09-26T20:13:51.000Z (about 1 month ago)
- Last Synced: 2024-10-07T03:41:45.617Z (about 1 month ago)
- Language: Shell
- Size: 249 KB
- Stars: 0
- Watchers: 1
- Forks: 2
- Open Issues: 32
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# GitHub Action: Run sqlboiler
This action runs [sqlboiler](https://github.com/volatiletech/sqlboiler) on pull requests to improve code review experience.
## Inputs
### `github_token`
Required. `${{ github.token }}` is used by default.
### `github_repository`
Required. `${{ github.repository }}` is used by default.
### `mysql_host`
Optional. --host flag of mysqldef. (default: 127.0.0.1)
### `mysql_port`
Optional. --port flag of mysqldef. (default: 3306)
### `mysql_user`
Required. --user flag of mysqldef.
### `mysql_password`
Required. --password flag of mysqldef.
### `mysql_database`
Required. database name of mysqldef.
### `sqlboiler_path`
Required. sqlboiler path of mysqldef. (default: sqlboiler.yml)
### `sqlboiler_output`
Required. The name of the folder to output to (default "models")
## Example usage
```yml
name: sqlboiler
on: [pull_request]
jobs:
sqlboiler:
name: sqlboiler
runs-on: ubuntu-latest
services:
mysql:
image: mysql:5.7
env:
MYSQL_DATABASE: githubaction
MYSQL_USER: githubaction
MYSQL_PASSWORD: githubaction
steps:
- uses: actions/checkout@v2
- name: Run Sqlboiler
uses: locona/action-sqlboiler@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
github_repository: ${{ github.repository }}
mysql_user: circleci
mysql_password: circleci
mysql_database: circleci
sqlboiler_path: sqlboiler/sqlboiler.yaml
sqlboiler_output: server/models
```