Fix Ruby version confusion #166
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: serpapi-ruby | |
| on: | |
| push: | |
| branches: [ master, dev ] | |
| pull_request: | |
| branches: [ master ] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| ruby-version: ['3.1.0'] # test only recommend Ruby version (and stable version on the gitaction server) | |
| # ideally test with those versions, but gitaction are limited | |
| # 2.7.4 is broken. | |
| # 4.0.0 is not supported yet | |
| # ruby-version: ['2.7.4','3.1.0','4.0.0'] | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Ruby ${{ matrix.ruby-version }} | |
| uses: ruby/setup-ruby@359bebbc29cbe6c87da6bc9ea3bc930432750108 | |
| with: | |
| ruby-version: ${{ matrix.ruby-version }} | |
| - 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: oobt | |
| env: | |
| SERPAPI_KEY: ${{ secrets.SERPAPI_KEY }} | |
| run: bundle exec rake oobt |