forked from janv/rest_in_place
-
Notifications
You must be signed in to change notification settings - Fork 569
50 lines (43 loc) · 1.22 KB
/
rspec.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
50
name: Ruby CI
on:
push:
branches:
- master
pull_request:
branches:
- master
permissions:
contents: read
jobs:
test:
name: Ruby ${{ matrix.ruby }} - Gemfile ${{ matrix.gemfile }}
runs-on: ubuntu-latest
strategy:
matrix:
ruby: [3.1, 3.2, 3.3]
rails:
- rails_7.0
- rails_7.1
- rails_7.2
- rails_edge
env:
RAILS_ENV: test
DISPLAY: ":99.0"
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.rails }}.gemfile
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Set up PhantomJS
run: |
mkdir -p travis-phantomjs
wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2 -O travis-phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2
tar -xvf travis-phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2 -C travis-phantomjs
echo "$PWD/travis-phantomjs/phantomjs-2.1.1-linux-x86_64/bin" >> $GITHUB_PATH
- name: Run tests
run: bundle exec rspec
env:
BUNDLE_GEMFILE: gemfiles/${{ matrix.rails }}.gemfile