mirror of
				https://github.com/ClusterCockpit/cc-metric-collector.git
				synced 2025-11-04 02:35:07 +01:00 
			
		
		
		
	Simple run test for Github Action. No RPM build
This commit is contained in:
		
							
								
								
									
										23
									
								
								.github/workflows/rpmbuild.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										23
									
								
								.github/workflows/rpmbuild.yml
									
									
									
									
										vendored
									
									
								
							@@ -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 }}
 | 
			
		||||
							
								
								
									
										14
									
								
								.github/workflows/runonce.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								.github/workflows/runonce.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -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
 | 
			
		||||
		Reference in New Issue
	
	Block a user