Skip to content

Commit c230dfa

Browse files
Update build-and-test.yml
1 parent 1743f6d commit c230dfa

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/build-and-test.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,17 @@ jobs:
1717
options:
1818
- os: ubuntu-latest
1919
framework: net7.0
20+
sdk-preview: true
2021
runtime: -x64
2122
codecov: false
2223
- os: macos-latest
2324
framework: net7.0
25+
sdk-preview: true
2426
runtime: -x64
2527
codecov: false
2628
- os: windows-latest
2729
framework: net7.0
30+
sdk-preview: true
2831
runtime: -x64
2932
codecov: true
3033
- os: ubuntu-latest
@@ -121,13 +124,28 @@ jobs:
121124
env:
122125
SIXLABORS_TESTING: True
123126

127+
- name: DotNet Build Preview
128+
if: ${{ matrix.options.sdk-preview == true }}
129+
shell: pwsh
130+
run: ./ci-build.ps1 "${{matrix.options.framework}}"
131+
env:
132+
SIXLABORS_TESTING_PREVIEW: True
133+
124134
- name: DotNet Test
125135
shell: pwsh
126136
run: ./ci-test.ps1 "${{matrix.options.os}}" "${{matrix.options.framework}}" "${{matrix.options.runtime}}" "${{matrix.options.codecov}}"
127137
env:
128138
SIXLABORS_TESTING: True
129139
XUNIT_PATH: .\tests\ImageSharp.Web.Tests # Required for xunit
130140

141+
- name: DotNet Test Preview
142+
if: ${{ matrix.options.sdk-preview == true }}
143+
shell: pwsh
144+
run: ./ci-test.ps1 "${{matrix.options.os}}" "${{matrix.options.framework}}" "${{matrix.options.runtime}}" "${{matrix.options.codecov}}"
145+
env:
146+
SIXLABORS_TESTING_PREVIEW: True
147+
XUNIT_PATH: .\tests\ImageSharp.Web.Tests # Required for xunit
148+
131149
- name: Codecov Update
132150
uses: codecov/codecov-action@v3
133151
if: matrix.options.codecov == true && startsWith(github.repository, 'SixLabors')

0 commit comments

Comments
 (0)