Skip to content

Commit

Permalink
Boiler plate
Browse files Browse the repository at this point in the history
  • Loading branch information
amishas157 committed Aug 5, 2024
1 parent ffb4b4a commit c391e61
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
15 changes: 15 additions & 0 deletions cmd/run_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package cmd

import (
"fmt"
"testing"
)

func TestIntegration(t *testing.T) {
tests := []cliTest{}

for _, test := range tests {
fmt.Println(test)
runCLITest(t, test, "testdata/transactions/")
}
}
7 changes: 7 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
services:
integration-tests:
build:
context: ./
dockerfile: docker/Dockerfile.test
container_name: stellar-etl-integration-tests
restart: always
11 changes: 11 additions & 0 deletions docker/Dockerfile.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# stage 1: build stellar-etl app
FROM golang:1.22.1-alpine AS build

WORKDIR /usr/src/etl

# pre-copy/cache go.mod for pre-downloading dependencies and only redownloading them in subsequent builds if they change
COPY go.mod go.sum ./
RUN go mod download && go mod verify

COPY . .
RUN go build -v -o /usr/local/bin ./...

0 comments on commit c391e61

Please # to comment.