-
Notifications
You must be signed in to change notification settings - Fork 55
49 lines (43 loc) · 1.32 KB
/
main.yml
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# This is a basic workflow to help you get started with Actions
name: CI
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby: ['3.1', '3.2', '3.3']
rails: ['6.0', '6.1', '7.0']
exclude:
- ruby: '3.1'
rails: '6.0'
- ruby: '3.2'
rails: '6.0'
- ruby: '3.3'
rails: '6.0'
name: Ruby ${{ matrix.ruby }} Rails ${{ matrix.rails }} run
services:
redis:
image: redis
ports:
- 6379:6379
options: --entrypoint redis-server
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Build and test with Rake
env:
RAILS_VERSION: "~> ${{ matrix.rails }}"
run: |
gem update --system
sudo apt-get update
sudo apt-get install -y libsodium23
sudo apt-get install libsqlite3-dev
gem install bundler
bundle install --jobs 4 --retry 3
bundle install --gemfile test/support/dummy_api/Gemfile --jobs 4 --retry 3
bundle install --gemfile test/support/dummy_sinatra_api/Gemfile --jobs 4 --retry 3
BUNDLE_GEMFILE=test/support/dummy_api/Gemfile bundle exec rake