mirror of
				https://github.com/v2fly/v2ray-core.git
				synced 2025-11-03 19:29:22 +00:00 
			
		
		
		
	update go 1.15.*
This commit is contained in:
		
							parent
							
								
									d3e3f787d4
								
							
						
					
					
						commit
						a8ce582285
					
				
							
								
								
									
										2
									
								
								.github/workflows/coverage.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/coverage.yml
									
									
									
									
										vendored
									
									
								
							@ -13,7 +13,7 @@ jobs:
 | 
			
		||||
      - name: Set up Go 1.x
 | 
			
		||||
        uses: actions/setup-go@v2
 | 
			
		||||
        with:
 | 
			
		||||
          go-version: ^1.14
 | 
			
		||||
          go-version: ^1.15
 | 
			
		||||
 | 
			
		||||
      - name: Checkout codebase
 | 
			
		||||
        uses: actions/checkout@v2
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										23
									
								
								.github/workflows/linter.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										23
									
								
								.github/workflows/linter.yml
									
									
									
									
										vendored
									
									
								
							@ -1,4 +1,4 @@
 | 
			
		||||
name: Lint
 | 
			
		||||
name: Linter
 | 
			
		||||
 | 
			
		||||
on:
 | 
			
		||||
  push:
 | 
			
		||||
@ -14,7 +14,7 @@ jobs:
 | 
			
		||||
      - name: Set up Go 1.x
 | 
			
		||||
        uses: actions/setup-go@v2
 | 
			
		||||
        with:
 | 
			
		||||
          go-version: ^1.14
 | 
			
		||||
          go-version: ^1.15
 | 
			
		||||
 | 
			
		||||
      - name: Checkout codebase
 | 
			
		||||
        uses: actions/checkout@v2
 | 
			
		||||
@ -26,14 +26,6 @@ jobs:
 | 
			
		||||
          key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
 | 
			
		||||
          restore-keys: ${{ runner.os }}-go-
 | 
			
		||||
 | 
			
		||||
      - name: Lint *.go files
 | 
			
		||||
        if: ${{ always() }}
 | 
			
		||||
        run: |
 | 
			
		||||
          go vet $(go list ./... | grep -v /external/)
 | 
			
		||||
          if [[ $? != 0 ]]; then
 | 
			
		||||
            exit 1
 | 
			
		||||
          fi
 | 
			
		||||
 | 
			
		||||
      - name: Lint other files
 | 
			
		||||
        if: ${{ always() }}
 | 
			
		||||
        uses: github/super-linter@v3.9.4
 | 
			
		||||
@ -48,18 +40,7 @@ jobs:
 | 
			
		||||
          VALIDATE_MD: false
 | 
			
		||||
          VALIDATE_PROTOBUF: false
 | 
			
		||||
 | 
			
		||||
      - name: Show if need to format code
 | 
			
		||||
        if: ${{ always() }}
 | 
			
		||||
        run: |
 | 
			
		||||
          filesNeedToFormat=$(go fmt ./...)
 | 
			
		||||
          if [[ $filesNeedToFormat ]]; then
 | 
			
		||||
            echo -e "\033[0;36m[Error] The following Go files need to be formatted:\033[0m"
 | 
			
		||||
            echo -e "\033[0;31m$filesNeedToFormat\033[0m"
 | 
			
		||||
            exit 1
 | 
			
		||||
          fi
 | 
			
		||||
 | 
			
		||||
      - name: golangci-lint
 | 
			
		||||
        if: ${{ always() }}
 | 
			
		||||
        uses: golangci/golangci-lint-action@v2
 | 
			
		||||
        with:
 | 
			
		||||
          version: v1.31
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										2
									
								
								.github/workflows/test.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/test.yml
									
									
									
									
										vendored
									
									
								
							@ -25,7 +25,7 @@ jobs:
 | 
			
		||||
      - name: Set up Go 1.x
 | 
			
		||||
        uses: actions/setup-go@v2
 | 
			
		||||
        with:
 | 
			
		||||
          go-version: ^1.14
 | 
			
		||||
          go-version: ^1.15
 | 
			
		||||
 | 
			
		||||
      - name: Checkout codebase
 | 
			
		||||
        uses: actions/checkout@v2
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user