52
52
echo "commit_message=$COMMIT_MESSAGE" | head -n 1 >> $GITHUB_OUTPUT
53
53
fi
54
54
55
- - name : Get changed files
56
- id : changed-files
57
- uses : tj-actions/changed-files@v43
58
- with :
59
- files_ignore : docs/**
60
-
61
- - name : List all changed files
62
- env :
63
- ALL_CHANGED_FILES : ${{ steps.changed-files.outputs.all_changed_files }}
64
- run : |
65
- for file in ${ALL_CHANGED_FILES}; do
66
- echo "$file was changed"
67
- done
68
-
69
55
- name : Setup env
70
- if : steps.changed-files.outputs.any_changed == 'true'
71
56
run : |
72
57
rm -f $HOME/.gitconfig;
73
58
mkdir -p "$HOME/.nextflow";
76
61
NXF_GITHUB_ACCESS_TOKEN : ${{ secrets.NXF_GITHUB_ACCESS_TOKEN }}
77
62
78
63
- name : Setup Java ${{ matrix.java_version }}
79
- if : steps.changed-files.outputs.any_changed == 'true'
80
64
uses : actions/setup-java@v4
81
65
with :
82
66
java-version : ${{matrix.java_version}}
85
69
cache : gradle
86
70
87
71
- name : Compile
88
- if : steps.changed-files.outputs.any_changed == 'true'
89
72
run : make assemble
90
73
91
74
- name : Test
92
- if : steps.changed-files.outputs.any_changed == 'true'
93
75
run : |
94
76
env | sort
95
77
# configure test env
@@ -114,18 +96,16 @@ jobs:
114
96
115
97
- name : Publish tests report
116
98
uses : actions/upload-artifact@v4
117
- if : steps.changed-files.outputs.any_changed == 'true' && always()
118
99
with :
119
100
name : report-unit-tests-jdk-${{ matrix.java_version }}
120
101
path : |
121
102
**/build/reports/tests/test
122
103
123
104
outputs :
124
- any_changed : ${{ steps.changed-files.outputs.any_changed }}
125
105
commit_message : ${{ steps.get_commit_message.outputs.commit_message }}
126
106
127
107
test :
128
- if : ${{ !contains(needs.build.outputs.commit_message, '[ci fast]') && needs.build.outputs.any_changed == 'true' }}
108
+ if : ${{ !contains(needs.build.outputs.commit_message, '[ci fast]') }}
129
109
needs : build
130
110
runs-on : ubuntu-latest
131
111
timeout-minutes : 90
0 commit comments