chore: Mass update of dependencies #2756
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| name: Functional | |
| permissions: | |
| contents: read | |
| on: | |
| pull_request: | |
| branches: [ "main" ] | |
| paths: | |
| - 'Cargo.toml' | |
| - 'Cargo.lock' | |
| - '.github/workflows/functional.yml' | |
| - 'openstack_cli/**' | |
| - 'openstack_sdk/**' | |
| jobs: | |
| functional: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| name: ["master"] | |
| openstack_version: ["master"] | |
| ubuntu_version: ["24.04"] | |
| # include: | |
| # - name: "bobcat" | |
| # openstack_version: "stable/2023.2" | |
| # ubuntu_version: "22.04" | |
| runs-on: ubuntu-${{ matrix.ubuntu_version }} | |
| name: Functional tests on OpenStack ${{ matrix.name }} | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0 | |
| with: | |
| egress-policy: audit | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libudev-dev | |
| - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 | |
| - name: Cache | |
| uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1 | |
| with: | |
| path: | | |
| ~/.cargo/bin/ | |
| ~/.cargo/registry/index/ | |
| ~/.cargo/registry/cache/ | |
| ~/.cargo/git/db/ | |
| ~/.cache/pip | |
| target/ | |
| key: ${{ runner.os }}-devstack-${{ hashFiles('**/Cargo.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-devstack- | |
| ${{ runner.os }}- | |
| - name: Deploy devstack | |
| uses: EmilienM/devstack-action@60ca1042045c0c9e3e001c64575d381654ffcba1 # v0.19 | |
| with: | |
| branch: ${{ matrix.openstack_version }} | |
| enabled_services: swift | |
| log_dir: /tmp/devstack-logs | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@6d653acede28d24f02e3cd41383119e8b1b35921 # stable | |
| with: | |
| toolchain: stable | |
| - name: Install cargo-nextest | |
| uses: taiki-e/install-action@f37a1e4d34f3e1c6a571e294b0258f2805eab48d # v2.58.4 | |
| with: | |
| tool: cargo-nextest | |
| - name: Execute functional tests | |
| env: | |
| OS_CLOUD: devstack | |
| run: cargo nextest run --test functional | |
| - name: Dump glance logs on failure | |
| if: failure() | |
| run: journalctl -u devstack@g-api --no-pager |