Skip to content

Commit

Permalink
ruboxcop
Browse files Browse the repository at this point in the history
  • Loading branch information
microstudi committed Oct 7, 2024
1 parent 6ff938b commit 6955b5f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 28 deletions.
31 changes: 5 additions & 26 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@ env:
SIMPLECOV: 1
NODE_VERSION: 18.17.1
RUBY_VERSION: 3.1.6
BUNDLE_GEMFILE: Gemfile
DISPLAY: ":99"
NODE_ENV: "test"
RAILS_ENV: "test"
RUBYOPT: '-W:no-deprecated'
RAILS_ENV: test
NODE_ENV: test

jobs:
test-report:
Expand Down Expand Up @@ -49,42 +48,22 @@ jobs:

- uses: nanasess/setup-chromedriver@v2
with:
chromedriver-version: 119.0.6045.105

- name: Remove Chrome
run: sudo apt remove google-chrome-stable

- uses: browser-actions/setup-chrome@v1
with:
chrome-version: 119.0.6045.105
chromedriver-version: 126.0.6478.182

- uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}

- name: Get npm cache directory path
id: npm-cache-dir-path
run: echo "::set-output name=dir::$(npm get cache)-vocdoni"

- uses: actions/cache@v3
id: npm-cache
with:
path: ${{ steps.npm-cache-dir-path.outputs.dir }}
key: npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
npm-
- run: npm ci
- run: bundle exec rake test_app
name: Create test app

- run: RAILS_ENV=test bundle exec rails assets:precompile
- run: bundle exec rails assets:precompile
name: Precompile assets
working-directory: ./spec/decidim_dummy_app/
shell: "bash"

- run: bundle exec rspec
name: RSpec
env:
CODECOV: 1

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
Expand Down
2 changes: 0 additions & 2 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,3 @@
Decidim::Dev.dummy_app_path = File.expand_path(File.join(__dir__, "decidim_dummy_app"))

require "decidim/dev/test/base_spec_helper"

require "decidim/dev/test/base_spec_helper"

0 comments on commit 6955b5f

Please sign in to comment.