dcd 0.2.0

Docker Compose Deployment tool for remote servers
Documentation
name: CI

on:
  push:
    branches: [ main ]
  pull_request:
    branches: [ main ]

env:
  CARGO_TERM_COLOR: always

jobs:
  check_and_lint:
    name: Check & Lint
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: dtolnay/rust-toolchain@stable
        with:
          components: rustfmt, clippy
      - uses: Swatinem/rust-cache@v2

      - name: Check formatting
        run: cargo fmt --all -- --check

      - name: Run Clippy
        run: cargo clippy --all-targets --all-features -- -D warnings

  test:
    name: Test Suite
    needs: check_and_lint
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: dtolnay/rust-toolchain@stable
      - uses: Swatinem/rust-cache@v2

      # - name: Setup Testcontainers Cloud Client
      #   uses: atomicjar/testcontainers-cloud-setup-action@v1
      #   with:
      #     token: ${{ secrets.TC_CLOUD_TOKEN }}
      #     wait: true
      # - name: Run tests
      #   run: cargo test --all-features
      - name: Run tests
        run: cargo test

  build_check:
    name: Build Check
    needs: check_and_lint
    strategy:
      matrix:
        os: [ubuntu-latest, macos-latest]
    runs-on: ${{ matrix.os }}
    steps:
      - uses: actions/checkout@v4
      - uses: dtolnay/rust-toolchain@stable
      - uses: Swatinem/rust-cache@v2

      - name: Build project
        run: cargo build --all-features --verbose