diff --git a/.github/workflows/legacy_ruby.yml b/.github/workflows/legacy_ruby.yml index ae91dcb1..b7c4881c 100644 --- a/.github/workflows/legacy_ruby.yml +++ b/.github/workflows/legacy_ruby.yml @@ -59,7 +59,7 @@ jobs: TEST_CONFIG: ./spec/config.github.yml steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Database run: | psql -c "CREATE ROLE runner SUPERUSER LOGIN CREATEDB;" -U postgres -h localhost diff --git a/.github/workflows/rubocop.yml b/.github/workflows/rubocop.yml new file mode 100644 index 00000000..17891526 --- /dev/null +++ b/.github/workflows/rubocop.yml @@ -0,0 +1,29 @@ +name: RuboCop + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +permissions: + contents: read + +jobs: + test: + name: RuboCop + runs-on: ubuntu-latest + + env: + BUNDLE_GEMFILE: gemfiles/rubocop.gemfile + + steps: + - uses: actions/checkout@v4 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: 3.2 + rubygems: latest + bundler-cache: true + - name: RuboCop + run: bundle exec rubocop diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index 5d35a548..4b7f87ca 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -72,7 +72,7 @@ jobs: continue-on-error: ${{ matrix.channel != 'stable' }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Database run: | psql -c "CREATE ROLE runner SUPERUSER LOGIN CREATEDB;" -U postgres -h localhost