MySQL

The MySQL action depends on the python mysql library. You can find complete documentation about the library here (opens in a new tab).

Fields

FieldRequiredDefaultDescription
db-hostyesThe database host
db-portno3306The database port
db-database-nameyesThe database name
db-useryesThe database user
db-passwordyesThe database password

Example

on:
  - pull_request
name: MySQL
jobs:
  test_mysql:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v4
      - name: Run Grai Action
        uses: grai-io/grai-actions/mysql@master
        with:
          namespace: my_apps_grai_namespace
          api-key: my_grai_api_key
          action: tests
          source-name: prod-db
          grai-api-url: https://api.grai.io
          db-host: dev.mysql.com
          db-port: '3306'
          db-database-name: my_db
          db-user: my_user
          db-password: my_password