Skip to content

Commit

Permalink
chore: Fix tests & lint
Browse files Browse the repository at this point in the history
  • Loading branch information
luciegrau committed Feb 11, 2025
1 parent 2636d61 commit 226022d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
15 changes: 14 additions & 1 deletion .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ env:
SIMPLECOV: "true"
RSPEC_FORMAT: "documentation"
RUBY_VERSION: 3.0.6
CHROME_VERSION: 126.0.6478.182
RAILS_ENV: test
NODE_VERSION: 16.9.1
RUBYOPT: '-W:no-deprecated'
Expand Down Expand Up @@ -86,7 +87,13 @@ jobs:
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ env.RUBY_VERSION }}
bundler-cache: true
bundler-cache: true
- run: |
sudo apt install libu2f-udev imagemagick
wget --no-verbose -O /tmp/chrome.deb https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_${{env.CHROME_VERSION}}-1_amd64.deb
sudo dpkg -i /tmp/chrome.deb
rm /tmp/chrome.deb
name: Install Chrome version ${{ env.CHROME_VERSION }}
- uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
Expand Down Expand Up @@ -153,6 +160,12 @@ jobs:
with:
ruby-version: ${{ env.RUBY_VERSION }}
bundler-cache: true
- run: |
sudo apt install libu2f-udev imagemagick
wget --no-verbose -O /tmp/chrome.deb https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_${{env.CHROME_VERSION}}-1_amd64.deb
sudo dpkg -i /tmp/chrome.deb
rm /tmp/chrome.deb
name: Install Chrome version ${{ env.CHROME_VERSION }}
- uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
Expand Down
4 changes: 2 additions & 2 deletions app/jobs/archive_users_phone_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def perform
log! "Terminated !"
end

private
private

def users_to_archive
Decidim::User.where.not(phone_number: [nil, ""]).where.not(phone_country: [nil, ""])
Expand Down Expand Up @@ -77,4 +77,4 @@ def current_date
def delete_reason
"Archived account - #{current_date}"
end
end
end

0 comments on commit 226022d

Please sign in to comment.