File tree Expand file tree Collapse file tree 1 file changed +28
-5
lines changed Expand file tree Collapse file tree 1 file changed +28
-5
lines changed Original file line number Diff line number Diff line change @@ -19,21 +19,44 @@ jobs:
1919        node-version : ' 22' 
2020        cache : ' npm' 
2121
22+     - name : Cache node_modules and native builds 
23+       uses : actions/cache@v4 
24+       id : cache-deps 
25+       with :
26+         path : | 
27+           node_modules 
28+           .vite 
29+           **/node_modules 
30+           **/*.node 
31+           **/build/Release 
32+ key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**/binding.gyp', '**/node_modules/**/*.node') }} 
33+         restore-keys : | 
34+           ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}- 
35+           ${{ runner.os }}-node- 
36+ 
2237name : Install dependencies 
23-       run : npm ci --ignore-scripts 
38+       if : steps.cache-deps.outputs.cache-hit != 'true' 
39+       run : | 
40+         npm ci --ignore-scripts 
41+         npm run prepare 
42+         npm rebuild 
2443
25-     - name : Apply patches 
44+ name : Apply patches and rebuild 
45+       if : steps.cache-deps.outputs.cache-hit == 'true' 
2646      run : npm run prepare 
2747
28-     - name : Rebuild 
29-       run : npm rebuild 
30- 
3148    - name : Run linting 
3249      run : npm run lint 
3350
3451    - name : Run tests with coverage 
3552      run : npm test 
3653
54+     - name : Generate assets 
55+       run : npm run generate-assets 
56+       env :
57+         IRACING_USERNAME : ${{ secrets.IRACING_USERNAME }} 
58+         IRACING_PASSWORD : ${{ secrets.IRACING_PASSWORD }} 
59+ 
3760    - name : Upload coverage report 
3861      uses : actions/upload-artifact@v4 
3962      with :
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments