name: Continuous Integration on: [push, pull_request] jobs: ci: if: "!contains(github.event.head_commit.message, 'skip ci')" runs-on: ubuntu-latest strategy: fail-fast: true steps: - uses: actions/checkout@v1 - name: Install required ruby uses: ruby/setup-ruby@v1 - uses: actions/cache@v2 with: path: vendor/bundle key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} restore-keys: | ${{ runner.os }}-gems- - name: Install gems run: | gem install -N bundler bundle config path vendor/bundle bundle install --jobs 4 --retry 3 - name: Run rubocop run: bundle exec rubocop - name: Run tests run: bundle exec rspec