From b55a6617971fa50bb064480f78343e6c0bc59dbe Mon Sep 17 00:00:00 2001 From: mo khan Date: Thu, 13 Mar 2025 12:07:11 -0600 Subject: chore: run the end to end tests by default --- Makefile | 1 + script/cibuild | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100755 script/cibuild diff --git a/Makefile b/Makefile index 66a8baa..4abd8ba 100644 --- a/Makefile +++ b/Makefile @@ -4,3 +4,4 @@ default: @command -v mage @command -v playwright @mage -l + @ruby ./script/cibuild diff --git a/script/cibuild b/script/cibuild new file mode 100755 index 0000000..b3da3e1 --- /dev/null +++ b/script/cibuild @@ -0,0 +1,15 @@ +#!/usr/bin/env ruby + +fork do + exec "mage servers" +end + +# Let the servers boot up +sleep 1 + +test_pid = fork do + exec "mage test" +end + +Process.wait(test_pid) +Process.kill('TERM', 0) -- cgit v1.2.3