@@ -64,13 +64,13 @@ jobs:
6464 .github/workflows/main.yml
6565
6666 - name : Setup repository
67- if : steps.changed_source.outputs.any_changed == 'true'
67+ if : steps.changed_source.outputs.any_changed == 'true'
6868 uses : ./.github/actions/setup
6969 with :
7070 swift : ${{ matrix.swift }}
7171
7272 - name : Run tests
73- if : steps.changed_source.outputs.any_changed == 'true'
73+ if : steps.changed_source.outputs.any_changed == 'true'
7474 run : npm run test
7575
7676 - name : Swift Coverage Report
@@ -102,10 +102,23 @@ jobs:
102102 - name : Checkout repository
103103 uses : actions/checkout@v3
104104
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+
105116 - name : Setup repository
117+ if : steps.changed_source.outputs.any_changed == 'true'
106118 uses : ./.github/actions/setup
107119
108120 - name : Run tests
121+ if : steps.changed_source.outputs.any_changed == 'true'
109122 run : npm run pod-lint
110123
111124 # Test Xcode project with swift 5.1
@@ -150,25 +163,25 @@ jobs:
150163
151164 - name : Check change in documentation
152165 id : changed_doc
153- if : steps.check_version_bump.outputs.release_type == ''
166+ if : steps.check_version_bump.outputs.release_type == ''
154167 uses :
tj-actions/[email protected] 155168 with :
156169 files : |
157170 Sources/**/*
158171 Package*.swift
159172
160173 - name : Setup repository
161- if : steps.changed_doc.outputs.any_changed == 'true'
174+ if : steps.changed_doc.outputs.any_changed == 'true'
162175 uses : ./.github/actions/setup
163176
164177 - name : Build package documentation
165- if : steps.changed_doc.outputs.any_changed == 'true'
178+ if : steps.changed_doc.outputs.any_changed == 'true'
166179 run : |
167180 npm run build
168181 npm run serve-doc
169182
170183 - name : Update GitHub Pages
171- if : steps.changed_doc.outputs.any_changed == 'true'
184+ if : steps.changed_doc.outputs.any_changed == 'true'
172185173186 with :
174187 branch : gh-pages
0 commit comments