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
|
2022-08-03 17:06:28 +02:00
|
|
|
run: ./cc-metric-collector --once --config .github/ci-config.json
|
|
|
|
|
|
|
|
#
|
|
|
|
# Job build-1-19
|
|
|
|
# Build on latest Ubuntu using golang version 1.19
|
|
|
|
#
|
|
|
|
build-1-19:
|
|
|
|
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.19'
|
|
|
|
|
|
|
|
- name: Build MetricCollector
|
|
|
|
run: make
|
|
|
|
|
|
|
|
- name: Run MetricCollector once
|
|
|
|
run: ./cc-metric-collector --once --config .github/ci-config.json
|