-
Notifications
You must be signed in to change notification settings - Fork 290
42 lines (35 loc) · 1.02 KB
/
Copy pathcurrent_support.yml
File metadata and controls
42 lines (35 loc) · 1.02 KB
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
name: Test supported versions
on:
push:
branches:
- 'master'
pull_request: {}
jobs:
spec:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby: ['3.2', '3.3', '3.4', '4.0']
gemfile: [rails_7_1, rails_7_2, rails_8_0, rails_8_1]
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Setup Chromedriver
uses: nanasess/setup-chromedriver@v3
- name: Setup Ruby and install gems
uses: ruby/setup-ruby@12fd324f1d0b43274fdc8130f6980590a667c455
with:
bundler-cache: true
ruby-version: ${{ matrix.ruby }}
rubygems: 3.7.2
- name: Migrate DB
run: bin/rake app:db:migrate
- name: Prepare DB
run: bin/rake app:db:test:prepare
- name: Install ImageMagick
run: sudo apt-get update && sudo apt-get install -y imagemagick
- name: Run spec
run: bin/rspec