Simple test project that sets up a hybrid cargo crate with a vite project

ci: enable tangled ci workflow

Signed-off-by: Jonathan Basniak <9uknek65z@mozmail.com>

+40
+40
.tangled/workflows/ci.yml
··· 1 + when: 2 + - event: ['pull_request'] 3 + branch: ['main'] 4 + 5 + engine: 'nixery' 6 + 7 + dependencies: 8 + nixpkgs: 9 + - nodejs 10 + - busybox 11 + - rustup 12 + 13 + steps: 14 + - name: Install dependencies 15 + command: | 16 + rustup toolchain install stable 17 + rustup target add wasm32-unknown-unknown 18 + 19 + corepack enable 20 + pnpm install --frozen-lockfile 21 + 22 + - name: Build & Run tests 23 + command: | 24 + echo "Building Projects" 25 + pnpm run build & build_pid=$! 26 + 27 + echo "Validating Code Formatting" 28 + pnpm run lint & lint_pid=$! 29 + 30 + echo "Testing Projects" 31 + pnpm run test & test_pid=$! 32 + 33 + wait $build_pid; build_exit_code=$? 34 + wait $lint_pid; lint_exit_code=$? 35 + wait $test_pid; test_exit_code=$? 36 + 37 + if [ $build_exit_code -ne 0 ] || [ $lint_exit_code -ne 0 ] || [ $test_exit_code -ne 0 ]; then 38 + echo "Build, lint, or test failed. Exiting." >&2 39 + exit 1 40 + fi