Skip to content

Commit

Permalink
not sure why this doesn-t work.
Browse files Browse the repository at this point in the history
  • Loading branch information
Quafadas committed Apr 3, 2024
1 parent 01eb4e4 commit e66aab1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion live.server.test.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit e66aab1

Please sign in to comment.