github.com/vnpaycloud-console/gophercloud/v2@v2.0.5/.github/workflows/functional-image.yaml (about)

     1  name: functional-image
     2  on:
     3    pull_request:
     4      paths:
     5        - '**image**'
     6    schedule:
     7      - cron: '0 0 */3 * *'
     8  jobs:
     9    functional-image:
    10      strategy:
    11        fail-fast: false
    12        matrix:
    13          include:
    14            - name: "master"
    15              openstack_version: "master"
    16              ubuntu_version: "22.04"
    17              additional_services: "openstack-cli-server"
    18            - name: "dalmatian"
    19              openstack_version: "stable/2024.2"
    20              ubuntu_version: "22.04"
    21              additional_services: "openstack-cli-server"
    22            - name: "caracal"
    23              openstack_version: "stable/2024.1"
    24              ubuntu_version: "22.04"
    25              additional_services: ""
    26            - name: "bobcat"
    27              openstack_version: "stable/2023.2"
    28              ubuntu_version: "22.04"
    29              additional_services: ""
    30      runs-on: ubuntu-${{ matrix.ubuntu_version }}
    31      name: Deploy OpenStack ${{ matrix.name }} with Glance and run image acceptance tests
    32      steps:
    33        - name: Checkout Gophercloud
    34          uses: actions/checkout@v4
    35        - name: Deploy devstack
    36          uses: EmilienM/devstack-action@e82a9cbead099cba72f99537e82a360c3e319c69
    37          with:
    38            branch: ${{ matrix.openstack_version }}
    39            enabled_services: "${{ matrix.additional_services }}"
    40        - name: Checkout go
    41          uses: actions/setup-go@v5
    42          with:
    43            go-version: '^1.23'
    44        - name: Run Gophercloud acceptance tests
    45          run: ./script/acceptancetest
    46          env:
    47            DEVSTACK_PATH: ${{ github.workspace }}/devstack
    48            PACKAGE: "./internal/acceptance/openstack/image/..."
    49            OS_BRANCH: ${{ matrix.openstack_version }}
    50        - name: Generate logs on failure
    51          run: ./script/collectlogs
    52          if: failure()
    53        - name: Upload logs artifacts on failure
    54          if: failure()
    55          uses: actions/upload-artifact@v4
    56          with:
    57            name: functional-image-${{ matrix.name }}-${{ github.run_id }}
    58            path: /tmp/devstack-logs/*