github.com/gophercloud/gophercloud@v1.14.1/.github/workflows/functional-objectstorage.yaml (about) 1 name: functional-objectstorage 2 on: 3 pull_request: 4 paths: 5 - '**objectstorage**' 6 jobs: 7 functional-objectstorage: 8 strategy: 9 fail-fast: false 10 matrix: 11 name: ["master"] 12 openstack_version: ["master"] 13 ubuntu_version: ["22.04"] 14 include: 15 - name: "caracal" 16 openstack_version: "stable/2024.1" 17 ubuntu_version: "22.04" 18 - name: "bobcat" 19 openstack_version: "stable/2023.2" 20 ubuntu_version: "22.04" 21 - name: "antelope" 22 openstack_version: "stable/2023.1" 23 ubuntu_version: "22.04" 24 runs-on: ubuntu-${{ matrix.ubuntu_version }} 25 name: Deploy OpenStack ${{ matrix.name }} with Swift and run objectstorage acceptance tests 26 steps: 27 - name: Checkout Gophercloud 28 uses: actions/checkout@v4 29 - name: Deploy devstack 30 uses: EmilienM/devstack-action@e82a9cbead099cba72f99537e82a360c3e319c69 31 with: 32 branch: ${{ matrix.openstack_version }} 33 conf_overrides: | 34 SWIFT_ENABLE_TEMPURLS=True 35 SWIFT_TEMPURL_KEY=secretkey 36 [[post-config|\$SWIFT_CONFIG_PROXY_SERVER]] 37 [filter:versioned_writes] 38 allow_object_versioning = true 39 enabled_services: 's-account,s-container,s-object,s-proxy' 40 - name: Checkout go 41 uses: actions/setup-go@v5 42 with: 43 go-version: '^1.15' 44 - name: Run Gophercloud acceptance tests 45 run: ./script/acceptancetest 46 env: 47 DEVSTACK_PATH: ${{ github.workspace }}/devstack 48 ACCEPTANCE_TESTS_FILTER: '^.*objectstorage.*$' 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-objectstorage-${{ matrix.name }} 58 path: /tmp/devstack-logs/*