File tree Expand file tree Collapse file tree 1 file changed +43
-23
lines changed Expand file tree Collapse file tree 1 file changed +43
-23
lines changed Original file line number Diff line number Diff line change 11on :
22  pull_request :
3+     paths-ignore :
4+       - " **.md" 
5+       - " docs/**" 
6+       - " examples/**" 
37  push :
48    branches : [master] 
9+     paths-ignore :
10+       - " **.md" 
11+       - " docs/**" 
12+       - " examples/**" 
513
614permissions :
715  contents : read 
816
917jobs :
10-   test :
11-     runs-on : macos -latest-xlarge 
18+   lint :
19+     runs-on : ubuntu -latest
1220    steps :
1321      - uses : actions/checkout@v4 
14-       - uses : actions/cache@v4 
15-         id : npm-cache 
22+       - uses : actions/setup-node@v4 
1623        with :
17-           path : " **/node_modules" 
18-           key : ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }} 
19- 
20-       - name : Install dependencies 
21-         run : npm install 
22- 
23-       - name : Run lint 
24-         run : npm run lint 
25- 
26-       - name : Unit tests 
27-         run : npm run test 
24+           node-version : " 22.x" 
25+           cache : " npm" 
26+       - run : npm ci 
27+       - run : npm run lint 
2828
29-       - name : Test generated source types 
30-         run : npm run test:src-types 
31- 
32-       - name : Test types 
33-         run : npm run test:types 
29+   test :
30+     runs-on : ubuntu-latest 
31+     steps :
32+       - uses : actions/checkout@v4 
33+       - uses : actions/setup-node@v4 
34+         with :
35+           node-version : " 22.x" 
36+           cache : " npm" 
37+       - run : npm ci 
38+       - run : npm run test 
3439
40+   types :
41+     runs-on : ubuntu-latest 
42+     steps :
43+       - uses : actions/checkout@v4 
44+       - uses : actions/setup-node@v4 
45+         with :
46+           node-version : " 22.x" 
47+           cache : " npm" 
48+       - run : npm ci 
49+       - run : npm run test:src-types 
50+       - run : npm run test:types 
51+ 
52+   deploy-docs :
53+     if : github.ref == 'refs/heads/master' 
54+     needs : [lint, test, types] 
55+     runs-on : ubuntu-latest 
56+     steps :
3557      - name : Trigger deploy 
36-         if : github.ref == 'refs/heads/master' 
3758        env :
3859          deploy_url : ${{ secrets.RENDER_DEPLOY_HOOK_URL }} 
39-         run : | 
40-           curl "$deploy_url" 
60+         run : curl -f "$deploy_url" 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments