Skip to content

CI Refactor

CI Refactor #3

Workflow file for this run

name: Linux
on:
push:
branches:
- main
tags:
- v*
pull_request:
jobs:
test:
name: ${{ format('Test (Ruby {0}, MySQL {1}, {2})', matrix.ruby, matrix.mysql, matrix.distribution) }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
mysql: ["5.7", "8.0"]
distribution: ["debian:buster", "ubuntu:focal", "ubuntu:bionic"]
ruby: ["3.3"]
include:
- mysql: "5.7"
distribution: "debian:buster"
ruby: "2.7.8"
steps:
- uses: actions/checkout@v4
- name: Docker login
run: echo $GITHUB_TOKEN | docker login ghcr.io --username trilogy --password-stdin
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run tests
env:
MYSQL_VERSION: ${{ matrix.mysql }}
DISTRIBUTION: ${{ matrix.distribution }}
RUBY_VERSION: ${{ matrix.ruby }}
run: script/cibuild