Skip to content

Commit

Permalink
yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
lovestaco committed Jul 20, 2023
1 parent 6283edc commit c15b953
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/testapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ jobs:
- name: Show Binary Directory
run: echo "$PWD"
- name: Test with the Go CLI
run: go test -v ./tests/
run: |
go mod tidy
go build -o build/l2 -ldflags "-X main.version=`git tag --sort=-version:refname | head -n 1`" l2.go
go test -v ./tests/

- name: Deploy hexmos doc
run: curl -X POST --fail -F token=${{ secrets.TRIGGER_TOKEN }} -F ref=main https://git.apps.hexmos.com/api/v4/projects/85/trigger/pipeline
6 changes: 4 additions & 2 deletions tests/env_command_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@ type EnvData struct {
}

func runL2CommandAndParseJSON(t *testing.T, cmdArgs ...string) {
// Store the current working directory

// Store the current working directory
originalPath, err := os.Getwd()
if err != nil {
fmt.Println("Error getting the current working directory:", err)
return
}
listFilesInDir(originalPath)

// Change the current working directory to lama2Path
l2BinPath := "/home/runner/work/Lama2/Lama2"
Expand All @@ -33,7 +35,7 @@ func runL2CommandAndParseJSON(t *testing.T, cmdArgs ...string) {

listFilesInDir(l2BinPath)

cmd := exec.Command("./l2", cmdArgs...) // Use "./l2" as the executable name
cmd := exec.Command("./../build/l2", cmdArgs...) // Use "./l2" as the executable name

var stdout bytes.Buffer
cmd.Stdout = &stdout
Expand Down

0 comments on commit c15b953

Please sign in to comment.