File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -22,20 +22,22 @@ jobs:
22
22
23
23
steps :
24
24
- name : Checkout repository for ${{ matrix.packages }} on ${{ matrix.node }} and ${{ matrix.os }}
25
+ if : ${{ github.event_name == 'pull_request' }}
25
26
uses : actions/checkout@v4
26
27
with :
27
28
ref : ${{ github.event.pull_request.head.ref }}
28
29
repository : ${{ github.event.pull_request.head.repo.full_name }}
29
30
31
+ - name : Checkout repository for ${{ matrix.packages }} on ${{ matrix.node }} and ${{ matrix.os }}
32
+ if : ${{ github.event_name != 'pull_request' }}
33
+ uses : actions/checkout@v4
34
+
30
35
- name : Setup Node.js ${{ matrix.node }} for ${{ matrix.packages }} on ${{ matrix.os }}
31
36
uses : actions/setup-node@v4
32
37
with :
33
38
node-version : ${{ matrix.node }}
34
39
cache : ' yarn'
35
40
36
- # - name: Install dependencies
37
- # run: yarn workspaces focus ${{ matrix.packages }}
38
-
39
41
- name : Mock the templates for ${{ matrix.packages }} on ${{ matrix.node }} and ${{ matrix.os }}
40
42
run : npx tsx scripts/mockTemplates.mts ${{ matrix.packages }}
41
43
53
55
with :
54
56
java-version : ' 17.x'
55
57
distribution : ' temurin'
58
+ cache : ' gradle'
56
59
57
60
- name : Build ${{ matrix.packages }} on ${{ matrix.node }} and ${{ matrix.os }}
58
61
working-directory : example
You can’t perform that action at this time.
0 commit comments