-
Notifications
You must be signed in to change notification settings - Fork 6
30 lines (30 loc) · 820 Bytes
/
ci.yml
File metadata and controls
30 lines (30 loc) · 820 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
name: serpapi-ruby
on:
push:
branches: [ master, dev ]
pull_request:
branches: [ master ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: ['2.7', '3.1.0','head'] # test only recommend Ruby version (and stable version on the gitaction server)
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- 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