Skip to content

upgrade ubuntu version to 22.04 #117

upgrade ubuntu version to 22.04

upgrade ubuntu version to 22.04 #117

Workflow file for this run

#(C) Copyright [2020] Hewlett Packard Enterprise Development LP
#
#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: build_unittest
on:
pull_request:
branches:
- '**'
workflow_dispatch:
jobs:
build:
name: Build
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: Compilation
run: |
export ODIMRA_USER_ID=2021; export ODIMRA_GROUP_ID=2021
./build_images.sh
if [ $? -eq 0 ];
then
echo "PluginCiscoACI build is successful"
else
echo "PluginCiscoACI build failed"
exit1
fi
- name: Set up Go 1.19.5
uses: actions/setup-go@v2
with:
go-version: 1.19.5
id: go
- name: Test
run: |
go test ./... --cover
if [ $? -eq 0 ]; then
echo Unit Testing is Successful !!!!
else
echo Unit Testing Failed !!!!
fi