/setup-mariadb

The missing action for MariaDB

Primary LanguageJavaScriptMIT LicenseMIT

setup-mariadb

The missing action for MariaDB 🎉

  • Simpler than containers
  • Works on Linux, Mac, and Windows
  • Supports different versions

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: "10.10"

Currently supports

Version 10.11 10.10 10.9 10.8 10.7 10.6 10.5 10.4 10.3
ubuntu-22.04 default ✓ ✓
ubuntu-20.04 default ✓ ✓ EOL ✓ ✓
macos-12 ✓ default ✓ ✓ EOL ✓ ✓ ✓ ✓
macos-11 ✓ default ✓ ✓ EOL ✓ ✓ ✓ ✓
windows-2022 ✓ default ✓ ✓ EOL ✓ ✓ ✓ ✓
windows-2019 ✓ default ✓ ✓ EOL ✓ ✓ ✓ ✓

Test against multiple versions

    strategy:
      matrix:
        mariadb-version: ["10.10", 10.9, 10.8]
    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: