mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-25 08:33:41 +01:00
Use workspace instead of caching for built assets (#8103)
Tests cannot run without built assets, and we want exactly the matching assets. This is not a cache.
This commit is contained in:
parent
07b799468d
commit
d425d30804
1 changed files with 4 additions and 10 deletions
|
@ -81,12 +81,6 @@ aliases:
|
||||||
- run: ruby -e 'puts RUBY_VERSION' | tee /tmp/.ruby-version
|
- run: ruby -e 'puts RUBY_VERSION' | tee /tmp/.ruby-version
|
||||||
- *restore_ruby_dependencies
|
- *restore_ruby_dependencies
|
||||||
|
|
||||||
- restore_cache:
|
|
||||||
keys:
|
|
||||||
- precompiled-assets-{{ .Branch }}-{{ .Revision }}
|
|
||||||
- precompiled-assets-{{ .Branch }}-
|
|
||||||
- precompiled-assets-
|
|
||||||
|
|
||||||
- run:
|
- run:
|
||||||
name: Prepare Tests
|
name: Prepare Tests
|
||||||
command: ./bin/rails parallel:create parallel:load_schema parallel:prepare
|
command: ./bin/rails parallel:create parallel:load_schema parallel:prepare
|
||||||
|
@ -125,11 +119,11 @@ jobs:
|
||||||
- run: ruby -e 'puts RUBY_VERSION' | tee /tmp/.ruby-version
|
- run: ruby -e 'puts RUBY_VERSION' | tee /tmp/.ruby-version
|
||||||
- *restore_ruby_dependencies
|
- *restore_ruby_dependencies
|
||||||
- run: ./bin/rails assets:precompile
|
- run: ./bin/rails assets:precompile
|
||||||
- save_cache:
|
- persist_to_workspace:
|
||||||
key: precompiled-assets-{{ .Branch }}-{{ .Revision }}
|
root: ~/projects/
|
||||||
paths:
|
paths:
|
||||||
- ./public/assets
|
- ./mastodon/public/assets
|
||||||
- ./public/packs-test/
|
- ./mastodon/public/packs-test/
|
||||||
|
|
||||||
test-ruby2.5:
|
test-ruby2.5:
|
||||||
<<: *defaults
|
<<: *defaults
|
||||||
|
|
Loading…
Reference in a new issue