@@ -3,14 +3,13 @@ name: CI
33on : [push, pull_request]
44
55jobs :
6- tests :
7- runs-on : ${{ matrix.os }}
6+ tests-on-x86-mac :
7+ runs-on : macos-13
88 strategy :
99 matrix :
10- os : [ubuntu-latest, macos-latest]
11- ruby-version : ['2.3', '2.4', '2.5', '2.6', '2.7', '3.0', '3.1']
10+ ruby-version : ['2.3', '2.4', '2.5', '2.6', '2.7', '3.0', '3.1', '3.2']
1211 steps :
13- - uses : actions/checkout@v2
12+ - uses : actions/checkout@v4
1413
1514 - name : Install Ruby ${{ matrix.ruby-version }} on ${{ matrix.os }}
1615 uses : ruby/setup-ruby@v1
2221
2322 - name : Run tests with Ruby ${{ matrix.ruby-version }} on ${{ matrix.os }}
2423 run : bundle exec rake
24+ tests-on-x86-docker :
25+ runs-on : ubuntu-latest
26+ strategy :
27+ matrix :
28+ ruby-version : ['3.2']
29+ steps :
30+ - uses : actions/checkout@v4
31+
32+ - name : Install Ruby ${{ matrix.ruby-version }} on ubuntu
33+ uses : ruby/setup-ruby@v1
34+ with :
35+ ruby-version : ${{ matrix.ruby-version }}
36+
37+ - name : Install dependencies
38+ run : bundle install
39+
40+ - name : Run tests on docker(x86)
41+ run : bundle exec rake
42+ tests-on-arm :
43+ runs-on : ubuntu-latest
44+ strategy :
45+ matrix :
46+ ruby-version : ['3.2']
47+ steps :
48+ - name : Set up QEMU
49+ uses : docker/setup-qemu-action@v3
50+ with :
51+ platforms : arm64
52+ - uses : actions/checkout@v4
53+ - name : Install Ruby ${{ matrix.ruby-version }} on ubuntu
54+ uses : ruby/setup-ruby@v1
55+ with :
56+ ruby-version : ${{ matrix.ruby-version }}
57+ - name : Run tests on docker(arm64)
58+ env :
59+ ARM : 1
60+ COMPOSE_FILE : docker-compose-arm.yml
61+ run : |
62+ set -xeu
63+ sudo apt update
64+ sudo apt-get install -y docker-compose
65+ bundle install
66+ bundle exec rake
67+
68+
0 commit comments