name: CI on: push: branches: [master] pull_request: jobs: build: runs-on: amd64 steps: - name: Install node run: | if command -v apk >/dev/null 2>&1; then apk add --no-cache nodejs npm elif command -v apt-get >/dev/null 2>&1; then apt-get update && apt-get install -y nodejs npm else echo "No package manager found, assuming node present" fi - uses: actions/checkout@v4 - name: Install Rust uses: dtolnay/rust-toolchain@stable with: components: rustfmt, clippy - name: cargo check run: cargo check - name: cargo clippy run: cargo clippy -- -D warnings - name: cargo test run: cargo test - name: cargo fmt --check run: cargo fmt -- --check