fix: modernize rubocop configuration, apply automatic fixes #2
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: CI | |
| on: [push, pull_request] | |
| jobs: | |
| tests: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| ruby: [2.7, '3.0', 3.1, 3.2, 3.3, 3.4, truffleruby-head] | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Sets up the Ruby version | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: ${{ matrix.ruby }} | |
| - name: Sets up the environment | |
| run: | | |
| sudo apt-get install libsqlite3-dev | |
| - name: Install bundler | |
| run: | | |
| gem install -q bundler | |
| - name: Run bundle install | |
| run: | | |
| bundle install | |
| - name: Runs code QA and tests | |
| run: bundle exec rake | |
| - name: Publish to Rubygems | |
| continue-on-error: true | |
| if: ${{ github.ref == 'refs/heads/master' }} | |
| run: | | |
| mkdir -p $HOME/.gem | |
| touch $HOME/.gem/credentials | |
| chmod 0600 $HOME/.gem/credentials | |
| printf -- "---\n:rubygems_api_key: Bearer ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials | |
| gem build *.gemspec | |
| gem push *.gem | |
| env: | |
| GEM_HOST_API_KEY: ${{secrets.RUBYGEMS_AUTH_TOKEN}} |