mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2025-04-05 13:15:55 +02:00
Update CI
This commit is contained in:
parent
da91813a81
commit
813804ae2d
14
.github/ci-config.json
vendored
14
.github/ci-config.json
vendored
@ -1,8 +1,10 @@
|
||||
{
|
||||
"sinks": ".github/ci-sinks.json",
|
||||
"collectors" : ".github/ci-collectors.json",
|
||||
"receivers" : ".github/ci-receivers.json",
|
||||
"router" : ".github/ci-router.json",
|
||||
"interval": "5s",
|
||||
"duration": "1s"
|
||||
"sinks-file": ".github/ci-sinks.json",
|
||||
"collectors-file" : ".github/ci-collectors.json",
|
||||
"receivers-file" : ".github/ci-receivers.json",
|
||||
"router-file" : ".github/ci-router.json",
|
||||
"main" : {
|
||||
"interval": "5s",
|
||||
"duration": "1s"
|
||||
}
|
||||
}
|
||||
|
61
.github/workflows/runonce.yml
vendored
61
.github/workflows/runonce.yml
vendored
@ -11,10 +11,10 @@ on:
|
||||
jobs:
|
||||
|
||||
#
|
||||
# Job build-1-21
|
||||
# Build on latest Ubuntu using golang version 1.21
|
||||
# Job build-latest
|
||||
# Build on latest Ubuntu using latest golang version
|
||||
#
|
||||
build-1-21:
|
||||
build-latest:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
# See: https://github.com/marketplace/actions/checkout
|
||||
@ -29,58 +29,7 @@ jobs:
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: '1.21'
|
||||
|
||||
- name: Build MetricCollector
|
||||
run: make
|
||||
|
||||
- name: Run MetricCollector once
|
||||
run: ./cc-metric-collector --once --config .github/ci-config.json
|
||||
|
||||
#
|
||||
# Job build-1-22
|
||||
# Build on latest Ubuntu using golang version 1.22
|
||||
#
|
||||
build-1-22:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
# See: https://github.com/marketplace/actions/checkout
|
||||
# Checkout git repository and submodules
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
# See: https://github.com/marketplace/actions/setup-go-environment
|
||||
- name: Setup Golang
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: '1.22'
|
||||
|
||||
- name: Build MetricCollector
|
||||
run: make
|
||||
|
||||
- name: Run MetricCollector once
|
||||
run: ./cc-metric-collector --once --config .github/ci-config.json
|
||||
|
||||
#
|
||||
# Job build-1-23
|
||||
# Build on latest Ubuntu using golang version 1.23
|
||||
#
|
||||
build-1-23:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
# See: https://github.com/marketplace/actions/checkout
|
||||
# Checkout git repository and submodules
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
# See: https://github.com/marketplace/actions/setup-go-environment
|
||||
- name: Setup Golang
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: '1.23'
|
||||
check-latest: true
|
||||
|
||||
- name: Build MetricCollector
|
||||
run: make
|
||||
@ -331,4 +280,4 @@ jobs:
|
||||
id: dpkg-build
|
||||
run: |
|
||||
export PATH=/usr/local/go/bin:/usr/local/go/pkg/tool/linux_amd64:$PATH
|
||||
make DEB
|
||||
make DEB
|
||||
|
Loading…
x
Reference in New Issue
Block a user