-
Notifications
You must be signed in to change notification settings - Fork 7
37 lines (32 loc) · 1008 Bytes
/
run-test.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
name: Ruby CI
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby-version: [2.6, 2.7]
rails-version: [5.2.x, 6.1.x]
env:
RAILS_VERSION: ${{ matrix.rails-version }}
CONFIG_FILE: ./config/bizside.yml
steps:
- uses: actions/checkout@v4
- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Install dependencies
run: |
sudo apt update
sudo apt install libsqlite3-dev libmagic-dev libmagick++-dev
- name: Install gem
run: bundle exec rake install
- name: Set up test app
run: bundle install -j4
working-directory: ./bizside_test_app
- name: Run tests
run: rails test
working-directory: ./bizside_test_app