From cc84a94647de66db230e8466b55efcd91c85641d Mon Sep 17 00:00:00 2001 From: Thomas Roehl Date: Mon, 23 May 2022 17:37:14 +0200 Subject: [PATCH] Remove Ganglia installation in runonce Action and add Go 1.18 --- .github/workflows/runonce.yml | 34 ++++++++++++++++++++++++++-------- 1 file changed, 26 insertions(+), 8 deletions(-) diff --git a/.github/workflows/runonce.yml b/.github/workflows/runonce.yml index 95d05c2..a12e002 100644 --- a/.github/workflows/runonce.yml +++ b/.github/workflows/runonce.yml @@ -7,6 +7,32 @@ name: Run Test on: push 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 # Build on latest Ubuntu using golang version 1.17 @@ -27,10 +53,6 @@ jobs: with: go-version: '1.17.7' - # Install libganglia - - name: Setup Ganglia - run: sudo apt install ganglia-monitor libganglia1 - - name: Build MetricCollector run: make @@ -57,10 +79,6 @@ jobs: with: 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 run: make