File tree Expand file tree Collapse file tree 5 files changed +32
-5
lines changed Expand file tree Collapse file tree 5 files changed +32
-5
lines changed Original file line number Diff line number Diff line change @@ -19,14 +19,21 @@ inputs:
19
19
Test options that determine how tests are run.
20
20
This value is used in the Launchable flavor.
21
21
22
+ srcdir :
23
+ required : false
24
+ default : ${{ github.workspace }}
25
+ description : >-
26
+ Directory to (re-)checkout source codes. Launchable retrives the commit information
27
+ from the directory.
28
+
22
29
outputs : {} # nothing?
23
30
24
31
runs :
25
32
using : composite
26
33
27
34
steps :
28
35
- name : Launchable - record tests
29
- working-directory : ${{ inputs.builddir }}
36
+ working-directory : ${{ inputs.srcdir }}
30
37
shell : bash
31
38
run : |
32
39
test_opts="$(echo ${{ inputs.test-opts }} | sed 's/=/:/g' | sed 's/ //g')"
Original file line number Diff line number Diff line change @@ -14,6 +14,13 @@ inputs:
14
14
Launchable token is needed if you want to run Launchable on your forked repository.
15
15
See https://github.com/ruby/ruby/wiki/CI-Servers#launchable-ci for details.
16
16
17
+ srcdir :
18
+ required : false
19
+ default : ${{ github.workspace }}
20
+ description : >-
21
+ Directory to (re-)checkout source codes. Launchable retrives the commit information
22
+ from the directory.
23
+
17
24
outputs :
18
25
enable-launchable :
19
26
description : " The boolean value indicating whether Launchable is enabled or not"
66
73
67
74
- name : Set up Launchable
68
75
shell : bash
76
+ working-directory : ${{ inputs.srcdir }}
69
77
run : |
70
78
set -x
71
79
PATH=$PATH:$(python -msite --user-base)/bin
Original file line number Diff line number Diff line change @@ -44,6 +44,11 @@ inputs:
44
44
description : >-
45
45
If set to true, creates dummy files in build dir.
46
46
47
+ fetch-depth :
48
+ required : false
49
+ default : ' 1'
50
+ description : The depth of commit history fetched from the remote repository
51
+
47
52
outputs : {} # nothing?
48
53
49
54
runs :
79
84
uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
80
85
with :
81
86
path : ${{ inputs.srcdir }}
87
+ fetch-depth : ${{ inputs.fetch-depth }}
82
88
83
89
- uses : actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
84
90
with :
Original file line number Diff line number Diff line change 56
56
with :
57
57
sparse-checkout-cone-mode : false
58
58
sparse-checkout : /.github
59
- # Set fetch-depth: 0 so that Launchable can receive commits information.
60
- fetch-depth : 0
61
59
62
60
- name : Install libraries
63
61
uses : ./.github/actions/setup/macos
68
66
builddir : build
69
67
makeup : true
70
68
dummy-files : ${{ matrix.test_task == 'check' }}
69
+ # Set fetch-depth: 0 so that Launchable can receive commits information.
70
+ fetch-depth : 10
71
71
72
72
- name : Run configure
73
73
run : ../src/configure -C --disable-install-doc
89
89
uses : ./.github/actions/launchable/setup
90
90
with :
91
91
launchable-token : ${{ secrets.LAUNCHABLE_TOKEN }}
92
+ srcdir : src
92
93
93
94
- name : Set extra test options
94
95
run : echo "TESTS=$TESTS ${{ matrix.test_opts }}" >> $GITHUB_ENV
@@ -118,9 +119,10 @@ jobs:
118
119
with :
119
120
# We need to configure the `build` directory because
120
121
# this composite action is executed in the default working directory.
121
- report-path : build/launchable_reports.json
122
+ report-path : ../ build/launchable_reports.json
122
123
os : ${{ matrix.os }}
123
124
test-opts : ${{ matrix.test_opts }}
125
+ srcdir : src
124
126
if : ${{ always() && steps.enable-launchable.outputs.enable-launchable }}
125
127
126
128
- uses : ./.github/actions/slack
Original file line number Diff line number Diff line change 69
69
builddir : build
70
70
makeup : true
71
71
dummy-files : ${{ matrix.test_task == 'check' }}
72
+ # Set fetch-depth: 10 so that Launchable can receive commits information.
73
+ fetch-depth : 10
72
74
73
75
- uses : ruby/setup-ruby@d4526a55538b775af234ba4af27118ed6f8f6677 # v1.172.0
74
76
with :
@@ -100,6 +102,7 @@ jobs:
100
102
uses : ./.github/actions/launchable/setup
101
103
with :
102
104
launchable-token : ${{ secrets.LAUNCHABLE_TOKEN }}
105
+ srcdir : src
103
106
104
107
- name : make ${{ matrix.test_task }}
105
108
run : >-
@@ -126,9 +129,10 @@ jobs:
126
129
with :
127
130
# We need to configure the `build` directory because
128
131
# this composite action is executed in the default working directory.
129
- report-path : build/launchable_reports.json
132
+ report-path : ../ build/launchable_reports.json
130
133
os : ubuntu-20.04
131
134
test-opts : ${{ matrix.configure }}
135
+ srcdir : src
132
136
if : ${{ always() && steps.enable-launchable.outputs.enable-launchable }}
133
137
134
138
- uses : ./.github/actions/slack
You can’t perform that action at this time.
0 commit comments