This repository was archived by the owner on Jun 27, 2023. It is now read-only.
  
  
  
  
    
    
    
      
    
  
  
    
File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change 1+ #  File managed by web3-bot. DO NOT EDIT.
2+ #  See https://github.com/protocol/.github/ for details.
3+ 
4+ on : [push, pull_request] 
5+ 
6+ jobs :
7+   unit :
8+     strategy :
9+       fail-fast : false 
10+       matrix :
11+         os : [ "ubuntu", "windows", "macos" ] 
12+         go : [ "1.15.x", "1.16.x" ] 
13+     runs-on : ${{ matrix.os }}-latest 
14+     name : Unit tests (${{ matrix.os}}, Go ${{ matrix.go }}) 
15+     steps :
16+       - uses : actions/checkout@v2 
17+       - uses : actions/setup-go@v2 
18+         with :
19+           go-version : ${{ matrix.go }} 
20+       - name : Go information 
21+         run : | 
22+           go version 
23+           go env 
24+ name : Run tests 
25+         run : go test -v -coverprofile coverage.txt ./... 
26+       - name : Run tests (32 bit) 
27+         if : ${{ matrix.os != 'macos' }}  #  can't run 32 bit tests on OSX.
28+         env :
29+           GOARCH : 386 
30+         run : go test -v ./... 
31+       - name : Run tests with race detector 
32+         if : ${{ matrix.os == 'ubuntu' }}  #  speed things up. Windows and OSX VMs are slow
33+         run : go test -v -race ./... 
34+       - name : Upload coverage to Codecov 
35+         uses : codecov/codecov-action@967e2b38a85a62bd61be5529ada27ebc109948c2  #  v1.4.1
36+         with :
37+           file : coverage.txt 
38+           env_vars : OS=${{ matrix.os }}, GO=${{ matrix.go }} 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments