name: "Ruby" on: push: branches: [ "main" ] pull_request: branches: [ "main" ] jobs: test: runs-on: ubuntu-latest env: RAILS_ENV: test steps: - name: Checkout code uses: actions/checkout@v3 - name: Install Ruby and gems uses: ruby/setup-ruby@ee2113536afb7f793eed4ce60e8d3b26db912da4 with: bundler-cache: true - name: Run tests and Rubocop run: bundle exec rake