From 71e86fe79d75acb3c776297cfd3846429049682f Mon Sep 17 00:00:00 2001 From: Thomas Roehl Date: Thu, 25 Nov 2021 16:24:33 +0100 Subject: [PATCH] Simple run test for Github Action. No RPM build --- .github/workflows/rpmbuild.yml | 23 ----------------------- .github/workflows/runonce.yml | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 23 deletions(-) delete mode 100644 .github/workflows/rpmbuild.yml create mode 100644 .github/workflows/runonce.yml diff --git a/.github/workflows/rpmbuild.yml b/.github/workflows/rpmbuild.yml deleted file mode 100644 index 7240c87..0000000 --- a/.github/workflows/rpmbuild.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: RPM Build -on: push - -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - - name: Setup Golang - uses: actions/setup-go@v2.1.4 - - - name: Build RPM package - id: rpm - uses: naveenrajm7/rpmbuild@master - with: - spec_file: "scripts/cc-metric-collector.spec" - - - name: Upload artifact - uses: actions/upload-artifact@v1.0.0 - with: - name: Binary RPM - path: ${{ steps.rpm.outputs.rpm_dir_path }} diff --git a/.github/workflows/runonce.yml b/.github/workflows/runonce.yml new file mode 100644 index 0000000..67b1f0f --- /dev/null +++ b/.github/workflows/runonce.yml @@ -0,0 +1,14 @@ +name: Run Test +on: push + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Setup Golang + uses: actions/setup-go@v2.1.4 + + - name: Run MetricCollector + run: go run metric-collector.go --once