diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 756185a2..1dfb4dda 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -61,4 +61,4 @@ jobs: run: echo 'DB=${{ matrix.db }}' >> $GITHUB_ENV - run: sudo echo "127.0.0.1 mysql2gem.example.com" | sudo tee -a /etc/hosts - run: bash ci/setup.sh - - run: bundle exec rake + - run: bundle exec rake spec diff --git a/.github/workflows/rubocop.yml b/.github/workflows/rubocop.yml new file mode 100644 index 00000000..913c158e --- /dev/null +++ b/.github/workflows/rubocop.yml @@ -0,0 +1,27 @@ +name: RuboCop + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up Ruby 2.4 + uses: ruby/setup-ruby@v1 + with: + ruby-version: 2.4 + - name: Cache gems + uses: actions/cache@v1 + with: + path: vendor/bundle + key: ${{ runner.os }}-rubocop-${{ hashFiles('**/Gemfile.lock') }} + restore-keys: | + ${{ runner.os }}-rubocop- + - name: Install gems + run: | + bundle config path vendor/bundle + bundle install --jobs 4 --retry 3 + - name: Run RuboCop + run: bundle exec rubocop