Skip to content

Commit

Permalink
build: run install rokit script as .sh
Browse files Browse the repository at this point in the history
  • Loading branch information
R-unic committed Dec 31, 2024
1 parent 02abcd4 commit f021652
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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=$(<test-output.txt)
if [[ ! $output =~ Failed:[^0] ]]; then
exit 0
} else {
else
exit 1
}
fi

0 comments on commit f021652

Please sign in to comment.