feat(distance): add Distance API support #18
Workflow file for this run
This file contains hidden or 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: 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 |