Add GitHub Actions (#211)

* Add 'run-tests' action to run specs
* Add 'push-to-registry' action to push image to Docker Hub
This commit is contained in:
Riccardo Graziosi
2023-04-16 15:53:05 +02:00
committed by GitHub
parent 1e6eb17af5
commit 60b0919ce6
9 changed files with 170 additions and 68 deletions

View File

@@ -22,12 +22,11 @@ RSpec.configure do |config|
end
# Compile fresh assets before system specs (needed to get the changes)
# If you're in development and this slows you down, comment it out
# and use ./script/rspec-compile-assets.sh only when needed
config.before(:all, type: :system, js: true) do
Rails.application.load_tasks
Rake::Task["assets:precompile"].invoke("--silent")
end
# Uncomment lines below, or use ./script/rspec-compile-assets.sh only when needed
# config.before(:all, type: :system, js: true) do
# Rails.application.load_tasks
# Rake::Task["assets:precompile"].invoke("--silent")
# end
# rspec-expectations config goes here. You can use an alternate
# assertion/expectation library such as wrong or the stdlib/minitest