Skip to content

Commit

Permalink
internal/lume: add end to end build test
Browse files Browse the repository at this point in the history
Signed-off-by: Xe Iaso <[email protected]>
  • Loading branch information
Xe committed Jun 21, 2024
1 parent bb6edff commit ab8e7ea
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions internal/lume/lume_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package lume

import (
"context"
"os"
"testing"
)

func TestCanBuildSite(t *testing.T) {
ctx, cancel := context.WithCancel(context.Background())
defer cancel()

dir, err := os.MkdirTemp("", "xesite")
if err != nil {
t.Fatal(err)
}

if _, err := New(ctx, &Options{
Branch: "main",
Repo: "https://github.com/Xe/site",
StaticSiteDir: "lume",
URL: "https://devel.xeiaso.net/",
DataDir: dir,
}); err != nil {
t.Fatal(err)
}
}

0 comments on commit ab8e7ea

Please sign in to comment.