Skip to content

Commit

Permalink
Do not remove node_modules after running the compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
fblupi committed Nov 14, 2024
1 parent 072d4cb commit 730333e
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 13 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@ jobs:
run: |
npm install
bundle exec rake assets:precompile
- run: |
mkdir node_modules
bundle exec rspec
- run: bundle exec rspec
name: Run specs
- uses: actions/upload-artifact@v4
if: always()
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/test_census_sms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@ jobs:
run: |
npm install
bundle exec rake assets:precompile
- run: |
mkdir node_modules
bundle exec rspec decidim-census_sms
- run: bundle exec rspec decidim-census_sms
name: Run specs
- uses: actions/upload-artifact@v4
if: always()
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/test_stats.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@ jobs:
run: |
npm install
bundle exec rake assets:precompile
- run: |
mkdir node_modules
bundle exec rspec decidim-stats
- run: bundle exec rspec decidim-stats
name: Run specs
- uses: actions/upload-artifact@v4
if: always()
Expand Down
4 changes: 0 additions & 4 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,3 @@ namespace :decidim_surveys_patch do
end
end
end

Rake::Task["assets:precompile"].enhance do
FileUtils.remove_dir("node_modules", true)
end

0 comments on commit 730333e

Please sign in to comment.