File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed
Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change 11name : Node.js CI
22
3- on :
4- push :
5- branches : [main]
6- pull_request :
7- branches : ['**']
3+ on : [push, pull_request]
84
95jobs :
106 lint :
117 name : Lint
128 runs-on : ubuntu-latest
9+ if : >
10+ github.event_name == 'push' ||
11+ (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository)
1312 steps :
1413 - uses : actions/checkout@v3
1514 - name : Use Node.js 20
2524 unit-tests :
2625 name : Unit tests
2726 runs-on : ubuntu-latest
27+ if : >
28+ github.event_name == 'push' ||
29+ (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository)
2830 strategy :
2931 matrix :
3032 node-version : [18, 20]
4749 node-version : [18, 20]
4850 os : [ubuntu-latest, macos-latest, windows-2019]
4951 runs-on : ${{ matrix.os }}
52+ if : >
53+ github.event_name == 'push' ||
54+ (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository)
5055 defaults :
5156 run :
5257 shell : bash
You can’t perform that action at this time.
0 commit comments