Skip to content

only set randompasswd in graphics template if it's true (#535) #1235

only set randompasswd in graphics template if it's true (#535)

only set randompasswd in graphics template if it's true (#535) #1235

Workflow file for this run

# -------------------------------------------------------------------------- #
# 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