-
Notifications
You must be signed in to change notification settings - Fork 67
39 lines (37 loc) · 995 Bytes
/
build.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
on:
pull_request:
branches:
- master
push:
branches:
- ci-check
- "*/ci-check"
- master
jobs:
build:
strategy:
fail-fast: false
matrix:
ruby: ['3.0', '3.1', '3.2']
rails: ['rails_6_0', 'rails_6_1', 'rails_7_0']
opal: ['opal_1_0', 'opal_1_3', 'opal_1_7']
runs-on: ubuntu-latest
steps:
- name: Install libraries
run: |
sudo apt-get update
sudo apt-get install -y sqlite3 libsqlite3-dev
- uses: actions/checkout@v1
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Install Dependencies
run: |
export BUNDLE_GEMFILE="gemfiles/${{ matrix.rails }}_${{ matrix.opal }}.gemfile"
gem install bundler
bundle install --jobs 4 --retry 3
- name: Test with Rake
run: |
export BUNDLE_GEMFILE="gemfiles/${{ matrix.rails }}_${{ matrix.opal }}.gemfile"
bundle exec rake