@@ -35,12 +35,17 @@ jobs:
3535 with :
3636 version : " ${{ matrix.NXF_VER }}"
3737
38+ - name : Hash Github Workspace
39+ id : hash_workspace
40+ run : |
41+ echo "digest=$(echo RNA_3.10.1_${{ github.workspace }} | md5sum | cut -c 1-25)" >> $GITHUB_OUTPUT
42+
3843 - name : Cache test data
3944 id : cache-testdata
4045 uses : actions/cache@v3
4146 with :
4247 path : test-datasets/
43- key : rnaseq3_10-test-data
48+ key : ${{ steps.hash_workspace.outputs.digest }}
4449
4550 - name : Check out test data
4651 if : steps.cache-testdata.outputs.cache-hit != 'true'
6570
6671 star_salmon :
6772 name : Test STAR Salmon with workflow parameters
68- if : ${{ github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'nf-core/rnaseq') }}
73+ if : ${{ ( github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'nf-core/rnaseq')) && !contains(github.event.head_commit.message, '[ci fast] ') }}
6974 runs-on : ubuntu-latest
7075 strategy :
7176 matrix :
@@ -87,12 +92,17 @@ jobs:
8792 - name : Check out pipeline code
8893 uses : actions/checkout@v2
8994
95+ - name : Hash Github Workspace
96+ id : hash_workspace
97+ run : |
98+ echo "digest=$(echo RNA_3.10.1_${{ github.workspace }} | md5sum | cut -c 1-25)" >> $GITHUB_OUTPUT
99+
90100 - name : Cache test data
91101 id : cache-testdata
92102 uses : actions/cache@v3
93103 with :
94104 path : test-datasets/
95- key : rnaseq3_10-test-data
105+ key : ${{ steps.hash_workspace.outputs.digest }}
96106
97107 - name : Check out test data
98108 if : steps.cache-testdata.outputs.cache-hit != 'true'
@@ -122,7 +132,7 @@ jobs:
122132
123133 star_rsem :
124134 name : Test STAR RSEM with workflow parameters
125- if : ${{ github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'nf-core/rnaseq') }}
135+ if : ${{ ( github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'nf-core/rnaseq')) && !contains(github.event.head_commit.message, '[ci fast] ') }}
126136 runs-on : ubuntu-latest
127137 strategy :
128138 matrix :
@@ -133,12 +143,17 @@ jobs:
133143 - name : Check out pipeline code
134144 uses : actions/checkout@v2
135145
146+ - name : Hash Github Workspace
147+ id : hash_workspace
148+ run : |
149+ echo "digest=$(echo RNA_3.10.1_${{ github.workspace }} | md5sum | cut -c 1-25)" >> $GITHUB_OUTPUT
150+
136151 - name : Cache test data
137152 id : cache-testdata
138153 uses : actions/cache@v3
139154 with :
140155 path : test-datasets/
141- key : rnaseq3_10-test-data
156+ key : ${{ steps.hash_workspace.outputs.digest }}
142157
143158 - name : Check out test data
144159 if : steps.cache-testdata.outputs.cache-hit != 'true'
@@ -168,7 +183,7 @@ jobs:
168183
169184 hisat2 :
170185 name : Test HISAT2 with workflow parameters
171- if : ${{ github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'nf-core/rnaseq') }}
186+ if : ${{ ( github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'nf-core/rnaseq')) && !contains(github.event.head_commit.message, '[ci fast] ') }}
172187 runs-on : ubuntu-latest
173188 strategy :
174189 matrix :
@@ -179,12 +194,17 @@ jobs:
179194 - name : Check out pipeline code
180195 uses : actions/checkout@v2
181196
197+ - name : Hash Github Workspace
198+ id : hash_workspace
199+ run : |
200+ echo "digest=$(echo RNA_3.10.1_${{ github.workspace }} | md5sum | cut -c 1-25)" >> $GITHUB_OUTPUT
201+
182202 - name : Cache test data
183203 id : cache-testdata
184204 uses : actions/cache@v3
185205 with :
186206 path : test-datasets/
187- key : rnaseq3_10-test-data
207+ key : ${{ steps.hash_workspace.outputs.digest }}
188208
189209 - name : Check out test data
190210 if : steps.cache-testdata.outputs.cache-hit != 'true'
@@ -214,7 +234,7 @@ jobs:
214234
215235 salmon :
216236 name : Test Salmon with workflow parameters
217- if : ${{ github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'nf-core/rnaseq') }}
237+ if : ${{ ( github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'nf-core/rnaseq')) && !contains(github.event.head_commit.message, '[ci fast] ') }}
218238 runs-on : ubuntu-latest
219239 strategy :
220240 matrix :
@@ -225,12 +245,17 @@ jobs:
225245 - name : Check out pipeline code
226246 uses : actions/checkout@v2
227247
248+ - name : Hash Github Workspace
249+ id : hash_workspace
250+ run : |
251+ echo "digest=$(echo RNA_3.10.1_${{ github.workspace }} | md5sum | cut -c 1-25)" >> $GITHUB_OUTPUT
252+
228253 - name : Cache test data
229254 id : cache-testdata
230255 uses : actions/cache@v3
231256 with :
232257 path : test-datasets/
233- key : rnaseq3_10-test-data
258+ key : ${{ steps.hash_workspace.outputs.digest }}
234259
235260 - name : Check out test data
236261 if : steps.cache-testdata.outputs.cache-hit != 'true'
0 commit comments