crowbar 0.4.10

Securily generates temporary AWS credentials through Identity Providers using SAML
Documentation
name: test
on:
  pull_request:
    branches:
      - "*"
  push:
    branches:
      - main
    tags-ignore:
      - "*"

jobs:
  test:
    if: "!contains(github.event.commits[0].message, '[ci skip]')"
    env:
      RUST_BACKTRACE: "full"
    runs-on: ${{ matrix.os }}
    strategy:
      fail-fast: true
      matrix:
        os: [macos-latest, windows-latest, ubuntu-20.04, ubuntu-22.04]

    steps:
      - uses: actions/checkout@v3
      - name: Install Rust stable
        uses: dtolnay/rust-toolchain@stable
        with:
          components: rustfmt, clippy
      - uses: Swatinem/rust-cache@v2
        with:
          key: ${{ matrix.os }}
      - name: Install dependencies and create directories
        env:
          DEBIAN_FRONTEND: "noninteractive"
        run: |
          sudo apt update && sudo apt install -y libdbus-1-dev gnome-keyring dbus-x11
          mkdir -p ~/.cache ~/.local/share/keyrings
        if: runner.os == 'Linux'
      - name: Test on Linux
        if: runner.os == 'Linux'
        run: |
          cargo fmt -- --check
          cargo clippy --release
          export $(dbus-launch)
          eval "printf '\n' | gnome-keyring-daemon --unlock"
          cargo test
      - name: Test on Windows/macOS
        if: runner.os != 'Linux'
        run: |
          cargo fmt -- --check
          cargo clippy --release
          cargo test