From d953b66b9787670acbcea379b133b933114db8ac Mon Sep 17 00:00:00 2001 From: Nixon Date: Thu, 5 Oct 2023 12:40:57 -0300 Subject: [PATCH] fix test --- .github/workflows/CI.yml | 10 ++++++---- .rubocop.yml | 8 ++++++++ 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 6a9e7b33..244cd648 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 47a924f8..5877b12e 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