mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2024-11-10 04:27:25 +01:00
34 lines
823 B
YAML
34 lines
823 B
YAML
# See: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
|
|
|
|
# Workflow name
|
|
name: Run Test
|
|
|
|
# Run on event push
|
|
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 |