-
Notifications
You must be signed in to change notification settings - Fork 7
34 lines (34 loc) · 998 Bytes
/
ci.yml
File metadata and controls
34 lines (34 loc) · 998 Bytes
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
name: serpapi-ruby
on:
push:
branches: [ master, dev ]
pull_request:
branches: [ master ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: ['2.7.8', '3.1.0','head'] # test only recommend Ruby version (and stable version on the GitHub action server)
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
# Install Bundler 2.4.x for Ruby 2.7
- name: Install Bundler 2.4.x for Ruby 2.7
if: matrix.ruby == '2.7.8'
run: gem install bundler -v '~> 2.4'
- name: install dependencies
run: bundle install
- name: lint
run: bundle exec rake lint
- name: tests
env:
SERPAPI_KEY: ${{ secrets.SERPAPI_KEY }}
run: bundle exec rake test
- name: out of box testing
env:
SERPAPI_KEY: ${{ secrets.SERPAPI_KEY }}
run: bundle exec rake oobt