---
# SPDX-FileCopyrightText: 2023 - 2024 Ali Sajid Imami
#
# SPDX-License-Identifier: Apache-2.0
# SPDX-License-Identifier: MIT
image:
    file: .gitpod.Dockerfile
tasks:
    - name: Cargo Check
      init: cargo check
    - name: Run Cargo Check
      command: >
        cargo watch -d 2 -w src -w Cargo.toml -x check -s 'touch .trigger' && gp sync-done CargoTrigger

    - name: Watch For Successful Check
      command: gp sync-await CargoTrigger && cargo watch -d 2 --no-gitignore -w .trigger -x  run
