platz-chart-ext 0.7.1

Platz Helm chart extensions
Documentation
name: ๐Ÿงช Test

on:
  pull_request:
  workflow_call:

permissions:
  contents: read

jobs:
  fmt:
    name: ๐ŸŽจ Check formatting
    runs-on: ubuntu-latest
    steps:
      - name: ๐Ÿ›  Checkout
        uses: actions/checkout@v6

      - name: ๐Ÿงฐ Install rustfmt
        run: rustup component add rustfmt

      - name: ๐ŸŽจ Cargo fmt
        run: cargo fmt --all -- --check

  test:
    name: ๐Ÿงช ${{ matrix.task }} (${{ matrix.profile }})
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      matrix:
        profile:
          - debug
          - release
        task:
          - clippy
          - test
    env:
      RUSTFLAGS: -D warnings
    steps:
      - name: ๐Ÿ›  Checkout
        uses: actions/checkout@v6

      - name: ๐Ÿ”ง Install cargo-hack
        uses: taiki-e/install-action@v2
        with:
          tool: cargo-hack

      - name: ๐Ÿ“ฆ Cargo ${{ matrix.task }} (feature powerset)
        run: |
          cargo hack ${{ matrix.task }} --feature-powerset ${{ matrix.profile == 'release' && '--release' || '' }}