File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Chrome Tests 
2+ 
3+ on :
4+   push :
5+     branches : [ master ] 
6+   pull_request :
7+     branches : [ master ] 
8+ 
9+ jobs :
10+   build :
11+ 
12+     runs-on : ubuntu-latest 
13+ 
14+     steps :
15+     - uses : actions/checkout@v2 
16+ 
17+     - run : docker run -d --net=host --shm-size=2g selenium/standalone-chrome:4.1.3 
18+ 
19+     - name : Validate composer.json and composer.lock 
20+       run : composer validate --strict 
21+ 
22+     - name : Cache Composer packages 
23+       id : composer-cache 
24+       uses : actions/cache@v2 
25+       with :
26+         path : vendor 
27+         key : ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} 
28+         restore-keys : | 
29+           ${{ runner.os }}-php- 
30+ 
31+ name : Install dependencies 
32+       run : composer install --prefer-dist --no-progress 
33+       
34+     - run : php ./vendor/bin/codecept build 
35+     - name : Start dev server 
36+       run : php -S 127.0.0.1:8000 -t tests/data/app >/dev/null 2>&1 & 
37+       
38+     - name : Tests 
39+       run : php ./vendor/bin/codecept run --env chrome 
40+ 
41+     #  Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"
42+     #  Docs: https://getcomposer.org/doc/articles/scripts.md
43+ 
44+     #  - name: Run test suite
45+     #    run: composer run-script test
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments