Updated github workflows
This commit is contained in:
		
							parent
							
								
									6eca7f6e5c
								
							
						
					
					
						commit
						8e5263131f
					
				
							
								
								
									
										47
									
								
								.github/workflows/gotip.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										47
									
								
								.github/workflows/gotip.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@ -0,0 +1,47 @@
 | 
			
		||||
 | 
			
		||||
on:
 | 
			
		||||
  workflow_dispatch:
 | 
			
		||||
  pull_request:
 | 
			
		||||
      types: [opened, reopened,ready_for_review,synchronize]
 | 
			
		||||
  push:
 | 
			
		||||
    branches:
 | 
			
		||||
      - main
 | 
			
		||||
      - master
 | 
			
		||||
name: Test Go Tip
 | 
			
		||||
jobs:
 | 
			
		||||
  test:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    steps:
 | 
			
		||||
    - name: Install Go
 | 
			
		||||
      uses: actions/setup-go@v2
 | 
			
		||||
      with:
 | 
			
		||||
        go-version: 1.19.x
 | 
			
		||||
    - name: Install Go tip
 | 
			
		||||
      run: |
 | 
			
		||||
        go install golang.org/dl/gotip@latest
 | 
			
		||||
        gotip download
 | 
			
		||||
        gotip version
 | 
			
		||||
    - name: Checkout
 | 
			
		||||
      uses: actions/checkout@v2
 | 
			
		||||
      with:
 | 
			
		||||
        submodules: recursive
 | 
			
		||||
    - id: Cache
 | 
			
		||||
      uses: actions/cache@v2
 | 
			
		||||
      with:
 | 
			
		||||
        path: |
 | 
			
		||||
          ~/go/pkg/mod              # Module download cache
 | 
			
		||||
          ~/.cache/go-build         # Build cache (Linux)
 | 
			
		||||
        key: ubuntu-go-${{ hashFiles('**/go.sum') }}
 | 
			
		||||
        restore-keys: |
 | 
			
		||||
          ubuntu-go-
 | 
			
		||||
    - name: Dependencies
 | 
			
		||||
      run: gotip mod download
 | 
			
		||||
      if: steps.cache.outputs.cache-hit != 'true'
 | 
			
		||||
    - name: Test
 | 
			
		||||
      run: gotip test ./...
 | 
			
		||||
    - name: Test 32 bit
 | 
			
		||||
      env:
 | 
			
		||||
        GOARCH: 386
 | 
			
		||||
      run: gotip test ./...
 | 
			
		||||
    - name: Test with race detector
 | 
			
		||||
      run: gotip test -race ./...
 | 
			
		||||
							
								
								
									
										2
									
								
								.github/workflows/test.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/test.yml
									
									
									
									
										vendored
									
									
								
							@ -12,7 +12,7 @@ jobs:
 | 
			
		||||
  test:
 | 
			
		||||
    strategy:
 | 
			
		||||
      matrix:
 | 
			
		||||
        go-version: [1.17.x, 1.18.x, 1.19.x]
 | 
			
		||||
        go-version: [1.18.x, 1.19.x]
 | 
			
		||||
        os: [ "ubuntu", "windows", "macos" ]
 | 
			
		||||
    runs-on: ${{ matrix.os }}-latest
 | 
			
		||||
    steps:
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user