Skip to content

Commit 7c36dcf

Browse files
committed
test
1 parent b38acf2 commit 7c36dcf

1 file changed

Lines changed: 66 additions & 39 deletions

File tree

.github/workflows/ci.yml

Lines changed: 66 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -125,46 +125,7 @@ jobs:
125125
name: NUnit testing ${{ matrix.configuration }} build on ${{ matrix.os }}
126126
path: '**/TestResults/*.trx,*.trx'
127127
reporter: dotnet-trx
128-
129-
- name: Grab TSQL plugin for 3.1
130-
uses: dawidd6/action-download-artifact@v11
131-
if: ${{ matrix.configuration == 'Release' && matrix.os == 'windows-latest' && steps.build.conclusion == 'success' }}
132-
with:
133-
github_token: ${{secrets.GITHUB_TOKEN}}
134-
repo: IVNSTN/TeamTools.Linter.TSQL
135-
workflow: ci.yml
136-
workflow_conclusion: completed
137-
branch: main
138-
name: TeamTools\.Linter\.TSQL-[\d.]+-Release-netstandard2\.0
139-
name_is_regexp: true
140-
path: ${{ env.OUTPUT_PATH }}/${{ matrix.configuration }}/netcoreapp3.1/Plugins
141-
142-
- name: Grab TSQL plugin for 6.0
143-
uses: dawidd6/action-download-artifact@v11
144-
if: ${{ matrix.configuration == 'Release' && matrix.os == 'windows-latest' && steps.build.conclusion == 'success' }}
145-
with:
146-
github_token: ${{secrets.GITHUB_TOKEN}}
147-
repo: IVNSTN/TeamTools.Linter.TSQL
148-
workflow: ci.yml
149-
workflow_conclusion: completed
150-
branch: main
151-
name: TeamTools\.Linter\.TSQL-[\d.]+-Release-net6\.0
152-
name_is_regexp: true
153-
path: ${{ env.OUTPUT_PATH }}/${{ matrix.configuration }}/net6.0/Plugins
154128

155-
- name: Grab TSQL plugin for 8.0
156-
uses: dawidd6/action-download-artifact@v11
157-
if: ${{ matrix.configuration == 'Release' && matrix.os == 'windows-latest' && steps.build.conclusion == 'success' }}
158-
with:
159-
github_token: ${{secrets.GITHUB_TOKEN}}
160-
repo: IVNSTN/TeamTools.Linter.TSQL
161-
workflow: ci.yml
162-
workflow_conclusion: completed
163-
branch: main
164-
name: TeamTools\.Linter\.TSQL-[\d.]+-Release-net8\.0
165-
name_is_regexp: true
166-
path: ${{ env.OUTPUT_PATH }}/${{ matrix.configuration }}/net8.0/Plugins
167-
168129
- name: Upload build artifacts 3.1
169130
uses: actions/upload-artifact@v4
170131
if: ${{ matrix.configuration == 'Release' && matrix.os == 'windows-latest' && steps.build.conclusion == 'success' }}
@@ -228,3 +189,69 @@ jobs:
228189
- name: Print code coverage
229190
if: steps.create_coverage_badge.outcome == 'success'
230191
run: echo "Code coverage percentage ${{steps.create_coverage_badge.outputs.percentage}}%"
192+
193+
repack-with-plugins:
194+
name: Repackage with plugins
195+
if: always()
196+
needs: [build, semver]
197+
runs-on: ubuntu-latest
198+
199+
defaults:
200+
run:
201+
shell: bash
202+
203+
strategy:
204+
fail-fast: false
205+
matrix:
206+
# plugin: [TeamTools.Linter.TSQL, TeamTools.Linter.SSDT]
207+
dotnet: [netstandard2.0, net6.0, net8.0]
208+
include:
209+
- dotnet: net6.0
210+
app-dotnet: net6.0
211+
- dotnet: net8.0
212+
app-dotnet: net8.0
213+
- dotnet: netstandard2.0
214+
app-dotnet: netcoreapp3.1
215+
216+
- name: Grab CLI ${{ matrix.app-dotnet }}
217+
id: cli
218+
uses: actions/download-artifact@v4
219+
with:
220+
name: ${{ env.PRODUCT_NAME }}-${{ needs.semver.outputs.next-version }}-Release-${{ matrix.app-dotnet }}
221+
path: ${{ env.PRODUCT_NAME }}-${{ needs.semver.outputs.next-version }}-Release-${{ matrix.app-dotnet }}
222+
223+
- name: Grab TSQL plugin ${{ matrix.dotnet }}
224+
uses: dawidd6/action-download-artifact@v11
225+
with:
226+
github_token: ${{secrets.GITHUB_TOKEN}}
227+
repo: IVNSTN/TeamTools.Linter.TSQL
228+
workflow: ci.yml
229+
workflow_conclusion: completed
230+
branch: main
231+
name: TeamTools\.Linter\.TSQL-[\d.]+-Release-netstandard2\.0
232+
name_is_regexp: true
233+
path: ${{ steps.cli.outputs.download-path }}/Plugins
234+
235+
- name: Grab SSDT plugin for ${{ matrix.dotnet }}
236+
uses: dawidd6/action-download-artifact@v11
237+
with:
238+
github_token: ${{secrets.GITHUB_TOKEN}}
239+
repo: IVNSTN/TeamTools.Linter.SSDT
240+
workflow: ci.yml
241+
workflow_conclusion: completed
242+
branch: main
243+
name: TeamTools\.Linter\.TSQL-[\d.]+-Release-netstandard2\.0
244+
name_is_regexp: true
245+
path: ${{ steps.cli.outputs.download-path }}/Plugins
246+
247+
- name: Remove version info from plugin folder names
248+
run: >
249+
cd "${{ steps.cli.outputs.download-path }}/Plugins"
250+
find . -name "TeamTools.Linter.TSQL*" -type d | mv TeamTools.Linter.SSDT
251+
find . -name "TeamTools.Linter.SSDT*" -type d | mv TeamTools.Linter.TSQL
252+
253+
- name: Upload repack
254+
uses: actions/upload-artifact@v4
255+
with:
256+
name: ${{ env.PRODUCT_NAME }}-${{ needs.semver.outputs.next-version }}-Release-net8.0-plugins-TSQL-SSDT
257+
path: ${{ steps.cli.outputs.download-path }}

0 commit comments

Comments
 (0)