diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 6a9e7b3..244cd64 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -18,10 +18,11 @@ jobs: - name: Install Ruby and gems uses: ruby/setup-ruby@v1 with: + ruby-version: "3.2" bundler-cache: true - name: Install the latest Rails gem - run: gem install rails -v "~> 7.0.0" + run: gem install rails -v "7.1.0" - name: Install Rubocop run: gem install rubocop rubocop-performance rubocop-minitest rubocop-packaging rubocop-minitest rubocop-rails @@ -31,7 +32,7 @@ jobs: - name: Create fresh Rails app and run generator run: | - rails new test-app --main + rails new test-app --skip-action-mailbox --skip-action-text --skip-active-storage cp .rubocop.yml test-app/.rubocop.yml cd test-app bundle add authentication-zero --path .. @@ -61,10 +62,11 @@ jobs: - name: Install Ruby and gems uses: ruby/setup-ruby@v1 with: + ruby-version: "3.2" bundler-cache: true - name: Install the latest Rails gem - run: gem install rails -v "~> 7.0.0" + run: gem install rails -v "7.1.0" - name: Install Rubocop run: gem install rubocop rubocop-performance rubocop-minitest rubocop-packaging rubocop-minitest rubocop-rails @@ -74,7 +76,7 @@ jobs: - name: Create fresh Rails app and run generator run: | - rails new test-app --main + rails new test-app --skip-action-mailbox --skip-action-text --skip-active-storage cp .rubocop.yml test-app/.rubocop.yml cd test-app bundle add authentication-zero --path .. diff --git a/.rubocop.yml b/.rubocop.yml index 47a924f..5877b12 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -4,5 +4,13 @@ Style/HashSyntax: Exclude: - Gemfile +Layout/EmptyLinesAroundBlockBody: + Exclude: + - Gemfile + +Layout/TrailingWhitespace: + Exclude: + - config/initializers/filter_parameter_logging.rb + Style/FrozenStringLiteralComment: Enabled: false