jao 0.3.7

Discover and run workspace scripts from a simple CLI
name: Jao dev CI

on:
  push:
    branches:
      - main
  pull_request:
    branches:
      - main
  workflow_dispatch:

jobs:
  verify:
    name: verify (${{ matrix.os }})
    runs-on: ${{ matrix.os }}
    strategy:
      fail-fast: false
      matrix:
        os:
          - ubuntu-latest
          - macos-latest
          - windows-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v5

      - name: Install cargo-hack
        uses: taiki-e/install-action@cargo-hack

      - name: Report toolchain
        run: |
          rustc --version
          cargo --version

      - name: Build all feature combinations
        run: cargo hack build --locked --each-feature

      - name: Run tests
        run: cargo test --locked

  docker:
    name: docker
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v5

      - name: Set up Docker Buildx
        uses: docker/setup-buildx-action@v3

      - name: Build Docker image
        uses: docker/build-push-action@v6
        with:
          context: .
          file: ./Dockerfile
          push: false
          tags: jao:ci

      - name: Build Docker image without trust manifest
        uses: docker/build-push-action@v6
        with:
          context: .
          file: ./Dockerfile
          build-args: |
            CARGO_BUILD_ARGS=--no-default-features
          push: false
          tags: jao:ci-no-manifest