Skip to content

Commit

Permalink
Ergh
Browse files Browse the repository at this point in the history
  • Loading branch information
kalverra committed Feb 8, 2024
1 parent 11853fb commit a8d204f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: resource.log
path: resource.log
path: output/output.txt
# Run this step when changes that do not need the test to run are made
- name: Run Setup
if: needs.changes.outputs.src == 'false'
Expand Down
11 changes: 10 additions & 1 deletion integration-tests/smoke/ocr2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"math/big"
"net/http"
"os"
"path/filepath"
"runtime"
"testing"
"time"
Expand All @@ -27,7 +28,15 @@ import (
func TestOCRv2Basic(t *testing.T) {
t.Parallel()
// DEBUG: For monitoring GHA resources
resourcesFile, err := os.OpenFile("resources.log", os.O_CREATE|os.O_APPEND|os.O_WRONLY, 0644)
workspace := os.Getenv("GITHUB_WORKSPACE") // Get the GitHub Actions workspace path
outputPath := filepath.Join(workspace, "output", "output.txt") // Specify a path within the workspace

// Ensure the directory exists
err := os.MkdirAll(filepath.Dir(outputPath), os.ModePerm)
if err != nil {
panic(err)
}
resourcesFile, err := os.OpenFile(outputPath, os.O_CREATE|os.O_APPEND|os.O_WRONLY, 0644)
if err != nil {
t.Fatal(err)
}
Expand Down

0 comments on commit a8d204f

Please sign in to comment.