Commit graph

6 commits

Author SHA1 Message Date
Felipe Martin
8c35a6ba2f
test: add basic e2e tests (#816)
* basic e2e test

* e2e ci

* test typo

* rm go.work

* refactor things a bit

* use current context for docker image

* rm coverage.txt

* ignore all coverage files

* use package

* unused const

* simplify dockeringnore

* made basic e2e test with cwd code

* comments in compose files

* fix go version file in e2e ci

* experimental podman support

* fixed ALPINE_VERSION arg source
2024-10-12 13:24:56 +02:00
ishmaelavila
836b950cc3
chore: bump compose go version to match go.mod (#987) 2024-10-05 22:24:38 +02:00
Felipe Martin
f72e2dec4a
deps: updated docker image versions (#809)
* deps: updated docker image versions

* use dockerhub alpine image

* use alpine image from dockerhub in ci
2023-12-30 08:03:10 +01:00
Felipe Martin
a60dbf3dc5
Run legacy API and new API at the same time. (#648)
* config: backwards comptabile dir

* remove duplicated frontend

* frontend: move assets to assets folder

* legacy routes handler in gin

* templates and asset in different embed

* new routes

* frontend routes serve old views

* added DTO for account object

* api auth calls legacy handler

* frontend: handle new error messages

* frontend: update urls

* frontend: login using new api

* updated frontend tests

* chore: remove debug route

* create shiori/gopher user if no owner is present

* server as default command

* serve -> server

* refactored database logic, allow database url

* removed unused configuration

* storage docs

* refactor cli to use cfg and deps

* check errors only in server

* log fatal instead of os exit

* dont default data directory to current dir

* fixed sqlite path

* trigger build on prs

* avoid releasing if lint/test fails

* pull request condition

* event -> event_name

* Get correct pull request number

* added workflow to delete dangling tags

* fix: nil error checking

* set gin mode first

* set gin mode before initialization

* fix logger

* allow version bump from custom ref

* Updated matrix link to workspace
2023-07-19 18:25:41 +02:00
Abe
b691abe704
Remove typo in post-run command (#527)
This should be `serve` not `server` 

server was causing it to freak out about the typo.
2022-10-28 09:03:48 +02:00
Felipe Martin Garcia
05fee53bd0
fix: saving bookmarks inconsistencies (#500)
* chore: updated go-migrate dependencies

* fix: specify if we're saving bookmarks expecting a creation

up until now the SaveBookmarks method was doing some "magic" to do
"upserts" on the databases, but consistency between engines was scarce
and not knowing if we were expecting saving a new bookmark or updating
an existing one was leading to errors and inconsistencies in logic all
around the place. Now we need to specify a creation boolean when
saving and a differnt query will be make (INSERT vs UPDATE).

* fix(api): using incorrect bookmark for content downlaod

* test(db): added test pipeline for databases

Added functions that will share logic among the engines and will be
called on fresh databases on each test run

* dev: added basic docker-compose for development

* chore: uncommented tests

* ci(test): added mysql service

* typo

* test(mysql): select database after reset

* fix(mysql): ignore empty row errors when parsing tags

* fix(mysql): handle insert errors

* chore: added mysql variables to compose

* ci: explicit mysql service port exposed
2022-10-11 23:47:38 +02:00