Home

Awesome

setup-mariadb

The missing action for MariaDB :tada:

Build Status

Getting Started

Add it as a step to your workflow

      - uses: ankane/setup-mariadb@v1

Versions

Specify a version

      - uses: ankane/setup-mariadb@v1
        with:
          mariadb-version: "11.4"

Currently supports

Version11.410.1110.610.5
ubuntu-24.04default
ubuntu-22.04default
ubuntu-20.04default
macos-15default
macos-14default
macos-13default
windows-2022default
windows-2019default

Test against multiple versions

    strategy:
      matrix:
        mariadb-version: ["11.4", "10.11", "10.6"]
    steps:
      - uses: ankane/setup-mariadb@v1
        with:
          mariadb-version: ${{ matrix.mariadb-version }}

Options

Create a database

      - uses: ankane/setup-mariadb@v1
        with:
          database: testdb

Extra Steps

Run queries

      - run: mysql -D testdb -e 'SELECT VERSION()'

Related Actions

Contributing

Everyone is encouraged to help improve this project. Here are a few ways you can help: