Skip to content

Make config.yml path configurable via environment; add ConfigService.… #1

Make config.yml path configurable via environment; add ConfigService.…

Make config.yml path configurable via environment; add ConfigService.… #1

Workflow file for this run

name: Run Tests
on: push
jobs:
# Run tests
test:
runs-on: ubuntu-latest
services:
mariadb:
image: mariadb:11
env:
MARIADB_USER: user
MARIADB_PASSWORD: password
MARIADB_DATABASE: test_database
MARIADB_ROOT_PASSWORD: password
ports: ["3306:3306"]
options: --health-cmd="mysqladmin ping" --health-interval=5s --health-timeout=2s --health-retries=3
steps:
- uses: actions/checkout@v3
- name: Wait for MariaDB
run: |
while ! mysqladmin ping -h"127.0.0.1" -P"3306" --silent; do
sleep 1
done
- name: Set up Ruby 3.2
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'
bundler-cache: true
- name: Run tests
run: bundle exec rake test
env:
CONFIG_PATH_YAML: "./config/config.tests.yml"