Skip to content

Commit

Permalink
Update ci-cd.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ddmicu authored Jul 16, 2024
1 parent e81f50d commit 8b1ec5d
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@ jobs:
uses: actions/setup-dotnet@v2
with:
dotnet-version: |
3.1.x
5.0.x
6.0.x
8.0.x
- uses: actions/cache@v3
with:
Expand All @@ -51,16 +50,17 @@ jobs:
env:
TINIFY_KEY: ${{ secrets.TINIFY_KEY }}
run: |
dotnet test --configuration Release --no-build --verbosity normal --framework netcoreapp3.1 test/Tinify.Tests
dotnet test --configuration Release --no-build --verbosity normal --framework net5.0 test/Tinify.Tests
dotnet test --configuration Release --no-build --verbosity normal --framework net6.0 test/Tinify.Tests
dotnet test --configuration Release --no-build --verbosity normal --framework net8.0 test/Tinify.Tests
- name: Run tests on windows
if: startsWith(matrix.os, 'windows')
env:
TINIFY_KEY: ${{ secrets.TINIFY_KEY }}
run: |
dotnet test --configuration Release --no-build --verbosity normal --framework net6.0 test/Tinify.Tests
dotnet test --configuration Release --no-build --verbosity normal --framework net8.0 test/Tinify.Tests
integrationTests:
if: github.event_name == 'push'
Expand All @@ -81,8 +81,8 @@ jobs:
uses: actions/setup-dotnet@v2
with:
dotnet-version: |
3.1.x
6.0.x
8.0.x
- uses: actions/cache@v3
with:
Expand All @@ -104,8 +104,9 @@ jobs:
env:
TINIFY_KEY: ${{ secrets.TINIFY_KEY }}
run: |
dotnet test --configuration Release --no-build --verbosity normal --framework netcoreapp3.1 test/Tinify.Tests.Integration
dotnet test --configuration Release --no-build --verbosity normal --framework net6.0 test/Tinify.Tests.Integration
dotnet test --configuration Release --no-build --verbosity normal --framework net8.0 test/Tinify.Tests.Integration
- name: Run tests on windows
if: startsWith(matrix.os, 'windows')
Expand All @@ -131,7 +132,7 @@ jobs:
- name: Set up dotnet
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x
dotnet-version: 8.0.x

- name: Check if properly tagged
run: |
Expand Down

0 comments on commit 8b1ec5d

Please sign in to comment.