File tree Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change 77
88jobs :
99  goreleaser :
10-     #  Containers  must run in  Linux based operating systems 
10+     #  You  must use a  Linux environment when using service containers or container jobs 
1111    runs-on : ubuntu-latest 
12-     container : golang:1.16-bullseye 
1312    #  Service containers to run with `goreleaser`
1413    services :
1514      #  Label used to access the service container
@@ -25,22 +24,30 @@ jobs:
2524          --health-interval 10s 
2625          --health-timeout 5s 
2726          --health-retries 5 
27+ ports :
28+           #  Maps tcp port 5432 on service container to the host
29+           - 5432:5432 
2830    steps :
2931      -
3032        name : Checkout 
3133        uses : actions/checkout@v2 
3234        with :
3335          fetch-depth : 0 
36+       -
37+         name : Set up Go 
38+         uses : actions/setup-go@v2 
39+         with :
40+           go-version : 1.16.4 
3441      -
3542        name : E2E tests 
3643        run : | 
37-           cp e2e/fixtures/cert.crt /usr/local/share/ca-certificates 
38-           update-ca-certificates 
44+           sudo  cp e2e/fixtures/cert.crt /usr/local/share/ca-certificates 
45+           sudo  update-ca-certificates 
3946          make e2e 
4047          make go-tfe-tests e2e 
4148env :
4249          #  The hostname used to communicate with the PostgreSQL service container
43-           OTF_DATABASE : postgres://postgres:postgres@postgres /postgres 
50+           OTF_DATABASE : postgres://postgres:postgres@localhost /postgres?sslmode=disable  
4451      -
4552        name : login to docker hub 
4653        run : echo ${{ secrets.DOCKERHUB_TOKEN }} | docker login -u leg100 --password-stdin 
5158          args : release --skip-sign 
5259        env :
5360          GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} 
54-           OTF_TEST_DATABASE_URL : postgres://postgres:postgres@postgres /postgres 
61+           OTF_TEST_DATABASE_URL : postgres://postgres:postgres@localhost /postgres?sslmode=disable  
5562
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments