Remove Ganglia installation in runonce Action and add Go 1.18

This commit is contained in:
Thomas Roehl 2022-05-23 17:37:14 +02:00
parent 838b8d824d
commit cc84a94647

View File

@ -7,6 +7,32 @@ name: Run Test
on: push on: push
jobs: jobs:
#
# Job build-1-18
# Build on latest Ubuntu using golang version 1.18
#
build-1-18:
runs-on: ubuntu-latest
steps:
# See: https://github.com/marketplace/actions/checkout
# Checkout git repository and submodules
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
# See: https://github.com/marketplace/actions/setup-go-environment
- name: Setup Golang
uses: actions/setup-go@v3
with:
go-version: '1.18.2'
- name: Build MetricCollector
run: make
- name: Run MetricCollector once
run: ./cc-metric-collector --once --config .github/ci-config.json
# #
# Job build-1-17 # Job build-1-17
# Build on latest Ubuntu using golang version 1.17 # Build on latest Ubuntu using golang version 1.17
@ -27,10 +53,6 @@ jobs:
with: with:
go-version: '1.17.7' go-version: '1.17.7'
# Install libganglia
- name: Setup Ganglia
run: sudo apt install ganglia-monitor libganglia1
- name: Build MetricCollector - name: Build MetricCollector
run: make run: make
@ -57,10 +79,6 @@ jobs:
with: with:
go-version: '1.16.7' # The version AlmaLinux 8.5 uses go-version: '1.16.7' # The version AlmaLinux 8.5 uses
# Install libganglia
- name: Setup Ganglia
run: sudo apt install ganglia-monitor libganglia1
- name: Build MetricCollector - name: Build MetricCollector
run: make run: make