Skip to content

Update to v1.10

Update to v1.10 #25

Workflow file for this run

name: Ruby Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ['2.6', '2.7', '3.0', '3.1']
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
# Don't use bundler-cache as it enables deployment mode
bundler-cache: false
- name: Install dependencies
run: |
# Install appropriate bundler version based on Ruby version
if [[ "${{ matrix.ruby-version }}" == "2.6" || "${{ matrix.ruby-version }}" == "2.7" ]]; then
gem install bundler -v 2.4.22
else
gem install bundler
fi
bundle config set --local path 'vendor/bundle'
bundle install
- name: Create .env file
run: |
echo "API_KEY=${{ secrets.GEOCODIO_API_KEY }}" > .env
- name: Run tests
run: bundle exec rspec