Skip to content

Commit

Permalink
add test apps
Browse files Browse the repository at this point in the history
  • Loading branch information
d-g-town committed Mar 5, 2024
1 parent 27a0479 commit 869b1ce
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 22 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
**/vendor
**/*.env
.idea
19 changes: 0 additions & 19 deletions main.go

This file was deleted.

6 changes: 3 additions & 3 deletions Dockerfile → old-integration-test/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ COPY go.mod go.sum ./

RUN go mod download

COPY /business ./business
COPY /texts ./texts
COPY /main.go ./
COPY /old-integration-test/business ./business
COPY /old-integration-test/texts ./texts
COPY /old-integration-test/main.go ./

RUN go build -o /app/trigger ./main.go

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
19 changes: 19 additions & 0 deletions old-integration-test/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package main

import (
"context"
"fmt"
business2 "github.com/porter-dev/app-integration-tests/old-integration-test/business"
)

func main() {
ctx := context.Background()

conf, err := business2.LoadFromEnvAndCreateConfig(ctx)

err = business2.RunWorkflow(ctx, conf)
if err != nil {
fmt.Println("error pushing: %w", err)
return
}
}
File renamed without changes.

0 comments on commit 869b1ce

Please sign in to comment.