Skip to content

Commit

Permalink
add e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
azuki774 committed Jul 27, 2024
1 parent 5ed49c2 commit 18a1db2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- "**"

jobs:
test:
e2e:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
13 changes: 10 additions & 3 deletions internal/scenario/testgithub.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,21 @@ import (
"github.com/go-rod/rod/lib/utils"
)

const defaultOutputDir = "/data"

type testGitHub struct { // for test
common ScenarioCommon
browser *rod.Browser
common ScenarioCommon
browser *rod.Browser
outputDir string

Check failure on line 19 in internal/scenario/testgithub.go

View workflow job for this annotation

GitHub Actions / test

field outputDir is unused (U1000)
}

func NewTestGitHub() *testGitHub {
outputDir := os.Getenv("outputDir")
if outputDir == "" {
outputDir = defaultOutputDir
}
return &testGitHub{
common: ScenarioCommon{ws: os.Getenv("wsAddr"), outputDir: "/data"},
common: ScenarioCommon{ws: os.Getenv("wsAddr"), outputDir: outputDir},
}
}
func (t *testGitHub) getBrowser(ctx context.Context) {
Expand Down

0 comments on commit 18a1db2

Please sign in to comment.