Skip to content

Commit

Permalink
fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
microstudi committed Oct 7, 2024
1 parent 5eae938 commit d16c38a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,16 @@ on:
pull_request:

env:
CI: "true"
RUBY_VERSION: 3.1.6
CI: 1
SIMPLECOV: 1
NODE_VERSION: 18.17.1
RUBY_VERSION: 3.1.6
BUNDLE_GEMFILE: Gemfile
DISPLAY: ":99"
SHAKAPACKER_RUNTIME_COMPILE: "false"
NODE_ENV: "test"
RAILS_ENV: "test"
RUBYOPT: '-W:no-deprecated'

jobs:
test-report:
Expand Down Expand Up @@ -82,8 +89,6 @@ jobs:

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ env.CODECOV_TOKEN }}

- uses: actions/upload-artifact@v3
if: always()
Expand Down
10 changes: 3 additions & 7 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,11 @@

require "decidim/dev"

require "simplecov"
SimpleCov.start "rails"
if ENV["CODECOV"]
require "codecov"
SimpleCov.formatter = SimpleCov::Formatter::Codecov
end

ENV["ENGINE_ROOT"] = File.dirname(__dir__)
ENV["NODE_ENV"] ||= "test"

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 d16c38a

Please sign in to comment.