diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 97a4b77..01b292a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,13 @@ jobs: - uses: coursier/cache-action@v6.4 - uses: VirtusLab/scala-cli-setup@main - uses: taiki-e/install-action@just - - run: just gha + - name: Install Playwright + run: just setupPlaywright + - name: compile + run: just compile + - name: test + run: just test + publish: needs: test diff --git a/justfile b/justfile index 0b041c4..8d50857 100644 --- a/justfile +++ b/justfile @@ -8,6 +8,9 @@ setupIde: package: scala-cli package . +compile: + scala-cli compile . --exclude testDir --exclude native --power + test: scala-cli test . --exclude testDir --exclude native --power diff --git a/live.server.test.scala b/live.server.test.scala index 4c44354..64a3dbe 100644 --- a/live.server.test.scala +++ b/live.server.test.scala @@ -49,7 +49,7 @@ class PlaywrightTest extends munit.FunSuite: ) .unsafeToFuture() - Thread.sleep(500) // give the thing time to start. + Thread.sleep(5000) // give the thing time to start. page.navigate(s"http://localhost:8085/index.html") assertThat(page.locator("h1")).containsText("HelloWorld");