File tree Expand file tree Collapse file tree 3 files changed +44
-18
lines changed Expand file tree Collapse file tree 3 files changed +44
-18
lines changed Original file line number Diff line number Diff line change 1+ name : Bats 
2+ 
3+ on :
4+   push :
5+     branches :
6+       - main 
7+       - develop 
8+   pull_request :
9+     branches :
10+       - main 
11+       - develop 
12+ jobs :
13+   bats-test :
14+     name : Run bats tests against shells 
15+     runs-on : ubuntu-latest 
16+ 
17+     steps :
18+       - name : Checkout 
19+         uses : actions/checkout@v4 
20+ 
21+       - name : Set up Docker Buildx 
22+         uses : docker/setup-buildx-action@v3 
23+ 
24+       - name : Build container & run bats tests 
25+         run : | 
26+           docker compose -f tests/bats/docker-compose.yml up --abort-on-container-exit --build 
Original file line number Diff line number Diff line change 1- name : Test Docker Container Build  on Pull Request 
1+ name : Test to build docker container  on Pull Request 
22
33on :
4-      pull_request :
5-          branches :
6-              - main 
7-              - develop 
4+   pull_request :
5+     branches :
6+       - main 
7+       - develop 
88
99jobs :
10-      build-container :
11-          runs-on : ubuntu-latest 
12-          steps :
13-              - name : Checkout 
14-                uses : actions/checkout@v4 
15-              - name : Set up QEMU 
16-                uses : docker/setup-qemu-action@v3 
17-              - name : Set up Docker Buildx 
18-                uses : docker/setup-buildx-action@v3 
19-              - name : Build Docker  Container 
20-                run : | 
21-                    docker buildx build --platform linux/amd64,linux/arm64 -t borgwarehouse:pr-${{ github.event.pull_request.number }} . 
10+   build-container :
11+     runs-on : ubuntu-latest 
12+     steps :
13+       - name : Checkout 
14+         uses : actions/checkout@v4 
15+       - name : Set up QEMU 
16+         uses : docker/setup-qemu-action@v3 
17+       - name : Set up Docker Buildx 
18+         uses : docker/setup-buildx-action@v3 
19+       - name : Build BorgWarehouse  Container 
20+         run : | 
21+           docker buildx build --platform linux/amd64,linux/arm64 -t borgwarehouse:pr-${{ github.event.pull_request.number }} . 
Original file line number Diff line number Diff line change 11services :
2-   test :
2+   bats- test
33    build :
44      context : ../.. 
55      dockerfile : tests/bats/Dockerfile 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments