-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
420 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package main | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/m1yon/jobsummoner/tests" | ||
"github.com/m1yon/jobsummoner/tests/adapters/web" | ||
"github.com/m1yon/jobsummoner/tests/specifications" | ||
) | ||
|
||
func TestServer(t *testing.T) { | ||
if testing.Short() { | ||
t.Skip() | ||
} | ||
|
||
port := "3000" | ||
driver, err := web.NewWebDriver(port) | ||
|
||
if err != nil { | ||
t.Fatal("failed creating web driver:", err.Error()) | ||
} | ||
|
||
tests.StartDockerServer(t, port) | ||
specifications.AuthSpecification(t, driver) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
FROM --platform=linux/amd64 alpine | ||
FROM golang:1.22-alpine | ||
|
||
ENV LOCAL_DB false | ||
ENV DATABASE_URL "" | ||
|
||
RUN apk update && apk add ca-certificates && apk add tzdata | ||
WORKDIR /app | ||
COPY . . | ||
EXPOSE 3000 | ||
|
||
RUN go build -o ./bin/server ./cmd/server | ||
|
||
EXPOSE 3000 | ||
CMD ./bin/server -local-db=${LOCAL_DB} -dsn=${DATABASE_URL} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.