Compare commits

...

2 Commits

Author SHA1 Message Date
Runar Ingebrigtsen
be0ddcc89e db before test
CI / scan_ruby (push) Successful in 16s
CI / scan_js (push) Successful in 12s
CI / lint (push) Successful in 19s
CI / test (push) Failing after 12s
CI / system-test (push) Failing after 13s
2026-01-26 22:54:23 +01:00
Runar Ingebrigtsen
654ec39f36 remove lint 2026-01-26 21:56:55 +01:00
4 changed files with 15 additions and 7 deletions
+12 -2
View File
@@ -83,12 +83,17 @@ jobs:
with:
bundler-cache: true
- name: Set up database
env:
RAILS_ENV: test
run: bin/rails db:create db:structure:load
- name: Run tests
env:
RAILS_ENV: test
# RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }}
# REDIS_URL: redis://localhost:6379/0
run: bin/rails db:test:prepare test
run: bin/rails test
system-test:
runs-on: ubuntu-latest
@@ -108,12 +113,17 @@ jobs:
with:
bundler-cache: true
- name: Set up database
env:
RAILS_ENV: test
run: bin/rails db:create db:structure:load
- name: Run System Tests
env:
RAILS_ENV: test
# RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }}
# REDIS_URL: redis://localhost:6379/0
run: bin/rails db:test:prepare test:system
run: bin/rails test:system
- name: Keep screenshots from failed system tests
uses: actions/upload-artifact@v4
+3 -3
View File
@@ -34,13 +34,13 @@ Rails.application.routes.draw do
end
resources :entries do
resources :comments, only: [:create]
resources :comments, only: [ :create ]
collection do
get :download
end
end
resources :suggested_meanings
resources :comments, only: [:create, :update, :destroy]
resources :supported_languages, only: [:index, :show]
resources :comments, only: [ :create, :update, :destroy ]
resources :supported_languages, only: [ :index, :show ]
resources :users
end
@@ -18,6 +18,5 @@ class CreateSuggestedMeanings < ActiveRecord::Migration[8.1]
t.timestamps
end
end
end
-1
View File
@@ -37,5 +37,4 @@ class CommentTest < ActiveSupport::TestCase
comment = Comment.new(user: user, body: "This is a comment.", language: language)
assert_not comment.valid?
end
end