Added installation of apt dependencies on gems push. #32
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install apt dependencies | |
run: apt-get update && 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 dependencies | |
run: bundle install | |
- name: Run tests | |
env: | |
IPINFO_TOKEN: ${{ secrets.IPINFO_TOKEN }} | |
run: bundle exec rake |