2022-03-01 15:39:26 +01:00
|
|
|
# See: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
|
|
|
|
|
|
|
|
# Workflow name
|
2021-11-25 16:24:33 +01:00
|
|
|
name: Run Test
|
2022-03-01 15:39:26 +01:00
|
|
|
|
|
|
|
# Run on event push
|
2021-11-25 16:24:33 +01:00
|
|
|
on: push
|
|
|
|
|
|
|
|
jobs:
|
2022-05-23 17:37:14 +02:00
|
|
|
#
|
|
|
|
# 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
|
|
|
|
|
2022-03-01 15:39:26 +01:00
|
|
|
#
|
|
|
|
# Job build-1-17
|
|
|
|
# Build on latest Ubuntu using golang version 1.17
|
|
|
|
#
|
2022-01-31 14:42:19 +01:00
|
|
|
build-1-17:
|
2021-11-25 16:24:33 +01:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-03-01 15:39:26 +01:00
|
|
|
# See: https://github.com/marketplace/actions/checkout
|
|
|
|
# Checkout git repository and submodules
|
|
|
|
- name: Checkout
|
|
|
|
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-05-23 16:50:58 +02:00
|
|
|
uses: actions/setup-go@v3
|
2022-01-24 15:55:15 +01:00
|
|
|
with:
|
2022-05-23 16:50:58 +02:00
|
|
|
go-version: '1.17.7'
|
2021-11-25 16:24:33 +01:00
|
|
|
|
2021-11-25 17:51:34 +01:00
|
|
|
- name: Build MetricCollector
|
|
|
|
run: make
|
|
|
|
|
2022-03-01 15:39:26 +01:00
|
|
|
- name: Run MetricCollector once
|
2021-11-26 18:15:04 +01:00
|
|
|
run: ./cc-metric-collector --once --config .github/ci-config.json
|
2022-03-01 15:39:26 +01:00
|
|
|
|
|
|
|
#
|
|
|
|
# Job build-1-16
|
|
|
|
# Build on latest Ubuntu using golang version 1.16
|
|
|
|
#
|
2022-01-31 14:42:19 +01:00
|
|
|
build-1-16:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-03-01 15:39:26 +01:00
|
|
|
# See: https://github.com/marketplace/actions/checkout
|
|
|
|
# Checkout git repository and submodules
|
|
|
|
- name: Checkout
|
|
|
|
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
|
2022-05-23 16:50:58 +02:00
|
|
|
uses: actions/setup-go@v3
|
2022-01-31 14:42:19 +01:00
|
|
|
with:
|
2022-05-23 16:50:58 +02:00
|
|
|
go-version: '1.16.7' # The version AlmaLinux 8.5 uses
|
2022-01-31 14:42:19 +01:00
|
|
|
|
|
|
|
- name: Build MetricCollector
|
|
|
|
run: make
|
|
|
|
|
2022-03-01 15:39:26 +01:00
|
|
|
- name: Run MetricCollector once
|
2022-01-31 14:42:19 +01:00
|
|
|
run: ./cc-metric-collector --once --config .github/ci-config.json
|