mirror of
				https://github.com/songquanpeng/one-api.git
				synced 2025-11-04 15:53:42 +08:00 
			
		
		
		
	ci: skip archive, upload directly (#1586)
This commit is contained in:
		
							
								
								
									
										16
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										16
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							@@ -36,21 +36,9 @@ jobs:
 | 
			
		||||
      # in the next step as well as the next job.
 | 
			
		||||
      - name: Test
 | 
			
		||||
        run: go test -cover -coverprofile=coverage.txt ./...
 | 
			
		||||
 | 
			
		||||
      - name: Archive code coverage results
 | 
			
		||||
        uses: actions/upload-artifact@v4
 | 
			
		||||
      - uses: codecov/codecov-action@v4
 | 
			
		||||
        with:
 | 
			
		||||
          name: code-coverage
 | 
			
		||||
          path: coverage.txt # Make sure to use the same file name you chose for the "-coverprofile" in the "Test" step
 | 
			
		||||
 | 
			
		||||
  code_coverage:
 | 
			
		||||
    name: "Code coverage report"
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    needs: unit_tests # Depends on the artifact uploaded by the "unit_tests" job
 | 
			
		||||
    steps:
 | 
			
		||||
    - uses: codecov/codecov-action@v4
 | 
			
		||||
      with:
 | 
			
		||||
        token: ${{ secrets.CODECOV_TOKEN }}
 | 
			
		||||
          token: ${{ secrets.CODECOV_TOKEN }}
 | 
			
		||||
 | 
			
		||||
  commit_lint:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user