Skip to content

ci: add acceptrance

ci: add acceptrance #3

Workflow file for this run

# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
# See https://github.com/apache/cloudstack-terraform-provider/blob/main/.github/workflows/acceptance.yml
name: Acceptance Test
on:
pull_request:
push:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-acceptance
cancel-in-progress: true
permissions:
contents: read
env:
CLOUDSTACK_API_URL: http://localhost:8080/client/api
CLOUDSTACK_VERSIONS: "['4.18.2.5', '4.19.1.1', '4.19.1.3']"
jobs:
prepare-matrix:
runs-on: ubuntu-latest
outputs:
cloudstack-versions: ${{ steps.set-versions.outputs.cloudstack-versions }}
steps:
- name: Set versions
id: set-versions
run: |
echo "cloudstack-versions=${{ env.CLOUDSTACK_VERSIONS }}" >> $GITHUB_OUTPUT
acceptance-cs:
name: cs with Cloudstack ${{ matrix.cloudstack-version }}
needs: [prepare-matrix]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Configure Cloudstack v${{ matrix.cloudstack-version }}
uses: ./.github/workflows/setup-cloudstack
id: setup-cloudstack
with:

Check failure on line 56 in .github/workflows/acceptance.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/acceptance.yml

Invalid workflow file

You have an error in your yaml syntax on line 56
cloudstack-version: ${{ matrix.cloudstack-version }}
- name: Run acceptance test
env:
CLOUDSTACK_API_KEY: ${{ steps.setup-cloudstack.outputs.CLOUDSTACK_API_KEY }}
CLOUDSTACK_SECRET_KEY: ${{ steps.setup-cloudstack.outputs.CLOUDSTACK_SECRET_KEY }}
run: |
echo $CLOUDSTACK_API_KEY
services:
cloudstack-simulator:
image: apache/cloudstack-simulator:${{ matrix.cloudstack-version }}
ports:
- 8080:5050
strategy:
fail-fast: false
matrix:
cloudstack-version: ${{ fromJson(needs.prepare-matrix.outputs.cloudstack-versions) }}