@@ -64,13 +64,13 @@ jobs:
64
64
.github/workflows/main.yml
65
65
66
66
- name : Setup repository
67
- if : steps.changed_source.outputs.any_changed == 'true'
67
+ if : steps.changed_source.outputs.any_changed == 'true'
68
68
uses : ./.github/actions/setup
69
69
with :
70
70
swift : ${{ matrix.swift }}
71
71
72
72
- name : Run tests
73
- if : steps.changed_source.outputs.any_changed == 'true'
73
+ if : steps.changed_source.outputs.any_changed == 'true'
74
74
run : npm run test
75
75
76
76
- name : Swift Coverage Report
@@ -102,10 +102,23 @@ jobs:
102
102
- name : Checkout repository
103
103
uses : actions/checkout@v3
104
104
105
+ - name : Check change in source files
106
+ id : changed_source
107
+ uses :
tj-actions/[email protected]
108
+ with :
109
+ files : |
110
+ Sources/**/*
111
+ Tests/**/*
112
+ *.podspec
113
+ .github/actions/setup/action.yml
114
+ .github/workflows/main.yml
115
+
105
116
- name : Setup repository
117
+ if : steps.changed_source.outputs.any_changed == 'true'
106
118
uses : ./.github/actions/setup
107
119
108
120
- name : Run tests
121
+ if : steps.changed_source.outputs.any_changed == 'true'
109
122
run : npm run pod-lint
110
123
111
124
# Test Xcode project with swift 5.1
@@ -150,25 +163,25 @@ jobs:
150
163
151
164
- name : Check change in documentation
152
165
id : changed_doc
153
- if : steps.check_version_bump.outputs.release_type == ''
166
+ if : steps.check_version_bump.outputs.release_type == ''
154
167
uses :
tj-actions/[email protected]
155
168
with :
156
169
files : |
157
170
Sources/**/*
158
171
Package*.swift
159
172
160
173
- name : Setup repository
161
- if : steps.changed_doc.outputs.any_changed == 'true'
174
+ if : steps.changed_doc.outputs.any_changed == 'true'
162
175
uses : ./.github/actions/setup
163
176
164
177
- name : Build package documentation
165
- if : steps.changed_doc.outputs.any_changed == 'true'
178
+ if : steps.changed_doc.outputs.any_changed == 'true'
166
179
run : |
167
180
npm run build
168
181
npm run serve-doc
169
182
170
183
- name : Update GitHub Pages
171
- if : steps.changed_doc.outputs.any_changed == 'true'
184
+ if : steps.changed_doc.outputs.any_changed == 'true'
172
185
173
186
with :
174
187
branch : gh-pages
0 commit comments