B-542: fix DS_MAD for ceph datastore (#560) #1230
This file contains 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
# -------------------------------------------------------------------------- # | |
# Copyright 2002-2022, OpenNebula Project, OpenNebula Systems # | |
# # | |
# Licensed 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. # | |
#--------------------------------------------------------------------------- # | |
name: CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
env: | |
OPENNEBULA_ENDPOINT: "http://localhost:2633/RPC2" | |
OPENNEBULA_USERNAME: "oneadmin" | |
OPENNEBULA_PASSWORD: "opennebula" | |
OPENNEBULA_FLOW_ENDPOINT: "http://localhost:2474" | |
TF_ACC: 1 | |
jobs: | |
lint-Go_Formating: | |
name: Go formating | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Checkout" | |
uses: actions/checkout@v2 | |
- name: "Set up Go" | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.18 | |
- name: "Install Go dependencies" | |
run: go install | |
- name: "Test Go formating" | |
run: bash ${{ github.workspace }}/.github/scripts/lint.sh | |
test-6_10: | |
name: "Test OpenNebula 6.10" | |
runs-on: ubuntu-24.04 | |
needs: [lint-Go_Formating] | |
steps: | |
- name: "Checkout" | |
uses: actions/checkout@v2 | |
- name: "Set up Go" | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.18 | |
- run: wget -q -O- https://downloads.opennebula.io/repo/repo2.key | sudo apt-key add - | |
- run: sudo sh -c 'echo "deb https://downloads.opennebula.io/repo/6.10/Ubuntu/24.04 stable opennebula" > /etc/apt/sources.list.d/opennebula.list' | |
- run: sudo apt-get -y update | |
- run: sudo apt-get -y install opennebula opennebula-flow opennebula-node-lxc # opennebula-node-lxc to ensure node dependencies for monitoring are installed | |
- run: source ${{ github.workspace }}/.github/scripts/oned.sh | |
- run: go install | |
- run: go test $(go list ./... | grep -v 'vendor') -v ${TESTARGS} -timeout 120m | |
test-6_4: | |
name: "Test OpenNebula 6.4" | |
runs-on: ubuntu-20.04 | |
needs: [lint-Go_Formating] | |
steps: | |
- name: "Checkout" | |
uses: actions/checkout@v2 | |
- name: "Set up Go" | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.18 | |
- run: wget -q -O- https://downloads.opennebula.io/repo/repo2.key | sudo apt-key add - | |
- run: sudo sh -c 'echo "deb https://downloads.opennebula.io/repo/6.4/Ubuntu/20.04 stable opennebula" > /etc/apt/sources.list.d/opennebula.list' | |
- run: sudo apt-get -y update | |
- run: sudo apt-get -y install opennebula opennebula-flow opennebula-node-lxc # opennebula-node-lxc to ensure node dependencies for monitoring are installed | |
- run: source ${{ github.workspace }}/.github/scripts/oned.sh | |
- run: go install | |
- run: go test $(go list ./... | grep -v 'vendor') -v ${TESTARGS} -timeout 120m |