chore(deps): Bump dtolnay/rust-toolchain from 6d653acede28d24f02e3cd41383119e8b1b35921 to 02cb101ec7c40f2c49e1d9714d64511d8e1b74de #4117
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' | |
| - 'cli/**' | |
| - 'openstack_cli/**' | |
| - 'openstack_sdk/**' | |
| - 'openstack_types/**' | |
| - 'sdk/**' | |
| - 'types/**' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} | |
| cancel-in-progress: true | |
| 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@05e31511f85b41b11d1cf0ef85d0992719546e2c # v2.21.0 | |
| with: | |
| egress-policy: audit | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libudev-dev | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| - name: Cache | |
| uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.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@02cb101ec7c40f2c49e1d9714d64511d8e1b74de # stable | |
| with: | |
| toolchain: stable | |
| - name: Install cargo-nextest | |
| uses: taiki-e/install-action@9e1e5806d4a4822de933115878265be9aaa786d9 # v2.82.2 | |
| 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 |