Skip to content

Merge pull request #174 from qwlong/master #94

Merge pull request #174 from qwlong/master

Merge pull request #174 from qwlong/master #94

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
tests-on-x86-mac:
runs-on: macos-13
strategy:
matrix:
ruby-version: ['2.3', '2.4', '2.5', '2.6', '2.7', '3.0', '3.1', '3.2']
steps:
- uses: actions/checkout@v4
- name: Install Ruby ${{ matrix.ruby-version }} on ${{ matrix.os }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
- name: Install dependencies
run: bundle install
- name: Run tests with Ruby ${{ matrix.ruby-version }} on ${{ matrix.os }}
run: bundle exec rake
tests-on-x86-docker:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ['3.2']
steps:
- uses: actions/checkout@v4
- name: Install Ruby ${{ matrix.ruby-version }} on ubuntu
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
- name: Install dependencies
run: bundle install
- name: Run tests on docker(x86)
run: bundle exec rake
tests-on-arm:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ['3.2']
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: arm64
- uses: actions/checkout@v4
- name: Install Ruby ${{ matrix.ruby-version }} on ubuntu
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
- name: Run tests on docker(arm64)
env:
ARM: 1
COMPOSE_FILE: docker-compose-arm.yml
run: |
set -xeu
sudo apt update
sudo apt-get install -y docker-compose
bundle install
bundle exec rake