forked from trilogy-libraries/trilogy
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (32 loc) · 867 Bytes
/
ci.yml
File metadata and controls
35 lines (32 loc) · 867 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: CI
permissions:
contents: read
on:
push:
branches:
- main
tags:
- v*
pull_request:
jobs:
build:
name: ${{ format('Build ({0}, {1}, {2})', matrix.mysql, matrix.distribution, matrix.ruby) }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
mysql: ["8.0", "8.4"]
distribution: ["debian:bookworm", "ubuntu:noble", "ubuntu:jammy", "ubuntu:focal"]
ruby: ["3.3", "3.4"]
steps:
- uses: actions/checkout@v5
- 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