diff --git a/.github/workflows/test.yml b/.github/workflows/build.yml similarity index 95% rename from .github/workflows/test.yml rename to .github/workflows/build.yml index e65b778..4660622 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/build.yml @@ -8,13 +8,12 @@ name: Ruby on: - push: - branches: [ master ] + push: {} pull_request: - branches: [ master ] + branches: [master] jobs: - test: + tests: runs-on: ubuntu-latest services: postgres: diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 9513fd0..1c8b987 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -53,6 +53,10 @@ RSpec.configure do |config| config.infer_spec_type_from_file_location! + config.before(:suite) do + DatabaseCleaner.clean_with(:truncation, except: %w(achievements)) + end + config.before(:example) do DatabaseCleaner.strategy = :transaction end