Increase retries when getting google sheet files to prevent rate limi… #271
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: Ruby | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
ruby: ['3.0.6', '3.1.4', '3.2.0'] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
- name: Build | |
run: | | |
gem install bundler | |
bundle install --jobs 4 --retry 3 | |
- name: Run linter | |
run: bundle exec rubocop | |
- name: Run tests | |
run: bundle exec rake test | |
- run: 'echo "$GOOGLE_APPLICATION_CREDENTIALS" > account_secret.json' | |
shell: bash | |
env: | |
GOOGLE_APPLICATION_CREDENTIALS: ${{secrets.GOOGLE_APPLICATION_CREDENTIALS}} | |
- name: Run private google sheet tests | |
if: matrix.ruby == '3.2.0' # Limit execution on latest ruby version to prevent reaching rate limits | |
run: bundle exec rake test_private_google_sheet | |
env: | |
GOOGLE_APPLICATION_CREDENTIALS: 'account_secret.json' |