From f021652dddf8a02754b7d2a15c9152c4b6e687fd Mon Sep 17 00:00:00 2001 From: R-unic Date: Tue, 31 Dec 2024 17:25:36 -0500 Subject: [PATCH] build: run install rokit script as .sh --- .github/workflows/test.yml | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 107af85..86a9329 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,14 +14,21 @@ jobs: - name: Checkout code uses: actions/checkout@v4 + - name: Install Rokit + run: | + curl -sSf -o install_rokit.sh https://raw.githubusercontent.com/rojo-rbx/rokit/main/scripts/install.sh + chmod +x install_rokit.sh + install_rokit.sh + + - name: Install NPM dependencies + run: npm i + - name: Run Tests run: | - curl -sSf https://raw.githubusercontent.com/rojo-rbx/rokit/main/scripts/install.sh | bash - npm i - npm test | Tee-Object -file test-output.txt; - $output = Get-Content -Path main-test-output.txt; - if ($output -notmatch 'Failed: [^0]') { + npm test | tee test-output.txt + output=$(