forked from ipinfo/ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (27 loc) · 889 Bytes
/
unittest.yaml
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
name: Unit Tests
on:
pull_request:
permissions:
contents: read
jobs:
run:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ['3.2', '3.1', '3.0', '2.7', '2.6']
steps:
- uses: actions/checkout@v3
- name: Install apt dependencies
run: sudo apt-get update && sudo apt-get install -y libcurl4-openssl-dev # needed by faraday-patron gem
- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
- name: Install apt dependencies
run: sudo apt-get update && sudo apt-get install -y libcurl4-openssl-dev # needed by faraday-patron gem
- name: Install dependencies
run: bundle install
- name: Run tests
env:
IPINFO_TOKEN: ${{ secrets.IPINFO_TOKEN }}
run: bundle exec rake