Skip to content

Commit d472a48

Browse files
committed
update ci
1 parent c98024e commit d472a48

File tree

2 files changed

+15
-49
lines changed

2 files changed

+15
-49
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,23 @@ on:
77

88
jobs:
99
rspec:
10-
runs-on: ubuntu-20.04
10+
runs-on: ubuntu-latest
1111

1212
services:
13+
mysql:
14+
image: mysql/mysql-server:8.0.30
15+
ports:
16+
- "3306:3306"
17+
env:
18+
MYSQL_ROOT_PASSWORD: root
19+
MYSQL_DATABASE: closure_tree_test
20+
MYSQL_ROOT_HOST: '%'
1321
postgres:
1422
image: 'postgres:13'
1523
ports: ['5432:5432']
1624
env:
1725
POSTGRES_PASSWORD: postgres
18-
POSTGRES_DB: closure_tree
26+
POSTGRES_DB: closure_tree_test
1927
options: >-
2028
--health-cmd pg_isready
2129
--health-interval 10s
@@ -29,39 +37,15 @@ jobs:
2937
- '3.0'
3038
- '2.7'
3139
- '2.6'
32-
- '2.5'
3340
rails:
3441
- activerecord_7.0
3542
- activerecord_6.1
3643
- activerecord_6.0
37-
- activerecord_5.2
38-
- activerecord_5.1
39-
- activerecord_5.0
40-
- activerecord_4.2
4144
- activerecord_edge
4245
adapter:
4346
- sqlite3
4447
- mysql2
4548
- postgresql
46-
exclude:
47-
- ruby: '2.7'
48-
rails: activerecord_4.2
49-
- ruby: '3.0'
50-
rails: activerecord_4.2
51-
- ruby: '3.0'
52-
rails: activerecord_5.0
53-
- ruby: '3.0'
54-
rails: activerecord_5.1
55-
- ruby: '3.0'
56-
rails: activerecord_5.2
57-
- ruby: '2.5'
58-
rails: activerecord_7.0
59-
- ruby: '2.6'
60-
rails: activerecord_7.0
61-
- ruby: '2.5'
62-
rails: activerecord_edge
63-
- ruby: '2.6'
64-
rails: activerecord_edge
6549

6650
steps:
6751
- name: Checkout
@@ -71,28 +55,10 @@ jobs:
7155
uses: ruby/setup-ruby@v1
7256
with:
7357
ruby-version: ${{ matrix.ruby }}
74-
75-
- name: Set DB Adapter
58+
bundler-cache: true
59+
rubygems: latest
7660
env:
77-
RAILS_VERSION: ${{ matrix.rails }}
78-
DB_ADAPTER: ${{ matrix.adapter }}
79-
80-
# See: https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2004-README.md#mysql
81-
run: |
82-
if [ "${DB_ADAPTER}" = "mysql2" ]; then
83-
sudo systemctl start mysql.service
84-
mysql -u root -proot -e 'create database closure_tree;'
85-
fi
86-
87-
- name: Bundle
88-
env:
89-
RAILS_VERSION: ${{ matrix.rails }}
90-
DB_ADAPTER: ${{ matrix.adapter }}
9161
BUNDLE_GEMFILE: gemfiles/${{ matrix.rails }}.gemfile
92-
run: |
93-
gem install bundler
94-
bundle config path vendor/bundle
95-
bundle install --jobs 4 --retry 3
9662

9763
- name: RSpec
9864
env:

closure_tree.gemspec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ require_relative 'lib/closure_tree/version'
55
Gem::Specification.new do |gem|
66
gem.name = 'closure_tree'
77
gem.version = ::ClosureTree::VERSION
8-
gem.authors = ['Matthew McEachen']
9-
gem.email = ['matthew-github@mceachen.org']
10-
gem.homepage = 'http://mceachen.github.io/closure_tree/'
8+
gem.authors = ['Matthew McEachen', 'Abdelkader Boudih']
9+
gem.email = %w[matthew+github@mceachen.org terminale@gmail.com]
10+
gem.homepage = 'https://github.com/ClosureTree/closure_tree/'
1111

1212
gem.summary = %q(Easily and efficiently make your ActiveRecord model support hierarchies)
1313
gem.description = gem.summary

0 commit comments

Comments
 (0)