Skip to content

Commit 00f5780

Browse files
committed
Create hash of github.workspace ID and use that as cache key
1 parent c51d105 commit 00f5780

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,16 @@ jobs:
5252

5353
- name: Replace remote paths in samplesheets
5454
run: |
55-
for f in ${{ github.workspace }}/test-datasets/samplesheet/v3.10/*.csv; do
56-
sed -i "s=https://raw.githubusercontent.com/nf-core/test-datasets/rnaseq/=${{ github.workspace }}/test-datasets/=g" $f
55+
for f in ./test-datasets/samplesheet/v3.10/*.csv; do
56+
sed -i "s=https://raw.githubusercontent.com/nf-core/test-datasets/rnaseq/=./test-datasets/=g" $f
5757
echo "========== $f ============"
5858
cat $f
5959
echo "========================================"
6060
done;
6161
6262
- name: Run pipeline with test data
6363
run: |
64-
nextflow run ${GITHUB_WORKSPACE} -profile test,docker --outdir ./results --test_data_base ${{ github.workspace }}/test-datasets/
64+
nextflow run ${GITHUB_WORKSPACE} -profile test,docker --outdir ./results --test_data_base ./test-datasets/
6565
6666
star_salmon:
6767
name: Test STAR Salmon with workflow parameters
@@ -104,8 +104,8 @@ jobs:
104104

105105
- name: Replace remote paths in samplesheets
106106
run: |
107-
for f in ${{ github.workspace }}/test-datasets/samplesheet/v3.10/*.csv; do
108-
sed -i "s=https://raw.githubusercontent.com/nf-core/test-datasets/rnaseq/=${{ github.workspace }}/test-datasets/=g" $f
107+
for f in ./test-datasets/samplesheet/v3.10/*.csv; do
108+
sed -i "s=https://raw.githubusercontent.com/nf-core/test-datasets/rnaseq/=./test-datasets/=g" $f
109109
echo "========== $f ============"
110110
cat $f
111111
echo "========================================"
@@ -118,7 +118,7 @@ jobs:
118118
119119
- name: Run pipeline with STAR and various parameters
120120
run: |
121-
nextflow run ${GITHUB_WORKSPACE} -profile test,docker --aligner star_salmon ${{ matrix.parameters }} --outdir ./results --test_data_base ${{ github.workspace }}/test-datasets/
121+
nextflow run ${GITHUB_WORKSPACE} -profile test,docker --aligner star_salmon ${{ matrix.parameters }} --outdir ./results --test_data_base ./test-datasets/
122122
123123
star_rsem:
124124
name: Test STAR RSEM with workflow parameters
@@ -150,8 +150,8 @@ jobs:
150150

151151
- name: Replace remote paths in samplesheets
152152
run: |
153-
for f in ${{ github.workspace }}/test-datasets/samplesheet/v3.10/*.csv; do
154-
sed -i "s=https://raw.githubusercontent.com/nf-core/test-datasets/rnaseq/=${{ github.workspace }}/test-datasets/=g" $f
153+
for f in ./test-datasets/samplesheet/v3.10/*.csv; do
154+
sed -i "s=https://raw.githubusercontent.com/nf-core/test-datasets/rnaseq/=./test-datasets/=g" $f
155155
echo "========== $f ============"
156156
cat $f
157157
echo "========================================"
@@ -164,7 +164,7 @@ jobs:
164164
165165
- name: Run pipeline with RSEM STAR and various parameters
166166
run: |
167-
nextflow run ${GITHUB_WORKSPACE} -profile test,docker --aligner star_rsem ${{ matrix.parameters }} --outdir ./results --test_data_base ${{ github.workspace }}/test-datasets/
167+
nextflow run ${GITHUB_WORKSPACE} -profile test,docker --aligner star_rsem ${{ matrix.parameters }} --outdir ./results --test_data_base ./test-datasets/
168168
169169
hisat2:
170170
name: Test HISAT2 with workflow parameters
@@ -196,8 +196,8 @@ jobs:
196196

197197
- name: Replace remote paths in samplesheets
198198
run: |
199-
for f in ${{ github.workspace }}/test-datasets/samplesheet/v3.10/*.csv; do
200-
sed -i "s=https://raw.githubusercontent.com/nf-core/test-datasets/rnaseq/=${{ github.workspace }}/test-datasets/=g" $f
199+
for f in ./test-datasets/samplesheet/v3.10/*.csv; do
200+
sed -i "s=https://raw.githubusercontent.com/nf-core/test-datasets/rnaseq/=./test-datasets/=g" $f
201201
echo "========== $f ============"
202202
cat $f
203203
echo "========================================"
@@ -210,7 +210,7 @@ jobs:
210210
211211
- name: Run pipeline with HISAT2 and various parameters
212212
run: |
213-
nextflow run ${GITHUB_WORKSPACE} -profile test,docker --aligner hisat2 ${{ matrix.parameters }} --outdir ./results --test_data_base ${{ github.workspace }}/test-datasets/
213+
nextflow run ${GITHUB_WORKSPACE} -profile test,docker --aligner hisat2 ${{ matrix.parameters }} --outdir ./results --test_data_base ./test-datasets/
214214
215215
salmon:
216216
name: Test Salmon with workflow parameters
@@ -242,8 +242,8 @@ jobs:
242242

243243
- name: Replace remote paths in samplesheets
244244
run: |
245-
for f in ${{ github.workspace }}/test-datasets/samplesheet/v3.10/*.csv; do
246-
sed -i "s=https://raw.githubusercontent.com/nf-core/test-datasets/rnaseq/=${{ github.workspace }}/test-datasets/=g" $f
245+
for f in ./test-datasets/samplesheet/v3.10/*.csv; do
246+
sed -i "s=https://raw.githubusercontent.com/nf-core/test-datasets/rnaseq/=./test-datasets/=g" $f
247247
echo "========== $f ============"
248248
cat $f
249249
echo "========================================"
@@ -256,4 +256,4 @@ jobs:
256256
257257
- name: Run pipeline with Salmon and various parameters
258258
run: |
259-
nextflow run ${GITHUB_WORKSPACE} -profile test,docker --pseudo_aligner salmon ${{ matrix.parameters }} --outdir ./results --test_data_base ${{ github.workspace }}/test-datasets/
259+
nextflow run ${GITHUB_WORKSPACE} -profile test,docker --pseudo_aligner salmon ${{ matrix.parameters }} --outdir ./results --test_data_base ./test-datasets/

0 commit comments

Comments
 (0)