Skip to content

Commit

Permalink
CI: trilogy with Ruby 3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
matsubara0507 committed Sep 28, 2024
1 parent 6fa2ffa commit b48e181
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/test_ruby_3_2_trilogy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Exec Rspec
run-name: Matrix building for ruby 3.2 ✖️ 【rails 6.1】✖️ Trilogy 🚀
on: [push]

jobs:
ruby_3_0:
strategy:
fail-fast: false
matrix:
arversion: ['6_0_6_trilogy', '6_1_7_trilogy']
runs-on: ubuntu-22.04
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/rails${{ matrix.arversion }}.gemfile
MYSQL_PWD: root
DATABASE_ADAPTER: trilogy
DATABASE_PASSWORD: root
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'
bundler: latest
bundler-cache: true
- name: Start mysql
run: |
sudo systemctl start mysql.service
mysql -h 127.0.0.1 --port 3306 -u root --password=root -e "ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root';"
- name: Reset DB
run: bundle exec rake turntable:db:reset
- name: Run RSpec
run: RUBYOPT='-W:deprecated' bundle exec rake spec

0 comments on commit b48e181

Please sign in to comment.