Its a crux!

ci: add support for tangled.sh

Signed-off-by: Jonathan Basniak <740416+gm112@users.noreply.github.com>

+32
+32
.tangled/workflows/ci.yml
··· 1 + when: 2 + - event: ["pull_request"] 3 + branch: ["main"] 4 + 5 + dependencies: 6 + nixpkgs: 7 + - nodejs 8 + 9 + steps: 10 + - name: Run workspace setup script 11 + command: bash ./scripts/pnpm-workspace/workspace-setup-all.sh 12 + - name: Install dependencies 13 + command: pnpm install 14 + - name: Build & Run tests 15 + command: | 16 + echo "Building Projects" 17 + pnpm run build:all & build_pid=$! 18 + 19 + echo "Validating Code Formatting" 20 + pnpm run lint:all & lint_pid=$! 21 + 22 + echo "Testing Projects" 23 + pnpm run test:all & test_pid=$! 24 + 25 + wait $build_pid; build_exit_code=$? 26 + wait $lint_pid; lint_exit_code=$? 27 + wait $test_pid; test_exit_code=$? 28 + 29 + if [ $build_exit_code -ne 0 ] || [ $lint_exit_code -ne 0 ] || [ $test_exit_code -ne 0 ]; then 30 + echo "Build, lint, or test failed. Exiting." >&2 31 + exit 1 32 + fi