2021-11-25 16:24:33 +01:00
|
|
|
name: Run Test
|
|
|
|
on: push
|
|
|
|
|
|
|
|
jobs:
|
2022-01-31 14:42:19 +01:00
|
|
|
build-1-17:
|
2021-11-25 16:24:33 +01:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2022-02-16 18:33:46 +01:00
|
|
|
with:
|
|
|
|
submodules: recursive
|
2021-11-25 16:24:33 +01:00
|
|
|
|
2022-01-24 15:55:15 +01:00
|
|
|
# See: https://github.com/marketplace/actions/setup-go-environment
|
2021-11-25 16:24:33 +01:00
|
|
|
- name: Setup Golang
|
2022-01-24 15:55:15 +01:00
|
|
|
uses: actions/setup-go@v2.1.5
|
|
|
|
with:
|
|
|
|
go-version: '^1.17.6'
|
2021-11-25 16:24:33 +01:00
|
|
|
|
2022-02-16 18:33:46 +01:00
|
|
|
- name: Setup Ganglia
|
|
|
|
run: sudo apt install ganglia-monitor libganglia1
|
|
|
|
|
2021-11-25 17:51:34 +01:00
|
|
|
- name: Build MetricCollector
|
|
|
|
run: make
|
|
|
|
|
2021-11-25 16:24:33 +01:00
|
|
|
- name: Run MetricCollector
|
2021-11-26 18:15:04 +01:00
|
|
|
run: ./cc-metric-collector --once --config .github/ci-config.json
|
2022-01-31 14:42:19 +01:00
|
|
|
build-1-16:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2022-02-16 18:33:46 +01:00
|
|
|
with:
|
|
|
|
submodules: recursive
|
2022-01-31 14:42:19 +01:00
|
|
|
|
|
|
|
# See: https://github.com/marketplace/actions/setup-go-environment
|
|
|
|
- name: Setup Golang
|
|
|
|
uses: actions/setup-go@v2.1.5
|
|
|
|
with:
|
|
|
|
go-version: '^1.16.7' # The version AlmaLinux 8.5 uses
|
|
|
|
|
2022-02-16 18:33:46 +01:00
|
|
|
- name: Setup Ganglia
|
|
|
|
run: sudo apt install ganglia-monitor libganglia1
|
|
|
|
|
2022-01-31 14:42:19 +01:00
|
|
|
- name: Build MetricCollector
|
|
|
|
run: make
|
|
|
|
|
2022-02-16 18:33:46 +01:00
|
|
|
- name: Run MetricCollectorlibganglia1
|
2022-01-31 14:42:19 +01:00
|
|
|
run: ./cc-metric-collector --once --config .github/ci-config.json
|