Repository navigation
chore(deps): Bump dtolnay/rust-toolchain from 6d653acede28d24f02e3cd41383119e8b1b35921 to 0f44b27771c32bda9f458f75a1e241b09791b331 #2608
Workflow file for this run
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@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.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@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 | |
| 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@0b1efabc08b657293548b77fb76cc02d26091c7e # 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 |