Skip to content

Commit

Permalink
update ci/cd
Browse files Browse the repository at this point in the history
  • Loading branch information
jpill committed May 23, 2024
1 parent b38ad88 commit ad9fc21
Showing 1 changed file with 9 additions and 25 deletions.
34 changes: 9 additions & 25 deletions .github/workflows/ci-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
run: dotnet test ShipEngine.Tests/bin/Release/net462/ShipEngine.Tests.dll

dot_net_core_test:
name: .Net Core 2.1.x, 3.1.x, and .Net 5.0 on ${{ matrix.os }}
name: .Net 8.0 on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
timeout-minutes: 10
strategy:
Expand All @@ -48,40 +48,24 @@ jobs:
steps:
- name: Checkout source
uses: actions/checkout@v2

- name: Setup dotnet 2.1.x
- name: Setup dotnet 8.0.x
uses: actions/setup-dotnet@v1
with:
dotnet-version: 2.1.x

- name: Setup dotnet 3.1.x
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.x

- name: Setup dotnet 5.0.x
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
dotnet-version: 8.0.x

- name: Dotnet tool restore
run: dotnet tool restore

- name: Lint
if: ${{ matrix.os == 'ubuntu-latest'}}
run: dotnet format --check
run: dotnet format

- name: Dotnet Build
run: dotnet build --configuration Release

- name: Run 2.1.x Tests
run: dotnet test -f netcoreapp2.1

- name: Run 3.1.x Tests
run: dotnet test -f netcoreapp3.1

- name: Run 5.0 Tests
run: dotnet test -f net5.0 --settings ShipEngine.Tests/coverage.runsettings
- name: Run 8.0 Tests
run: dotnet test -f net8.0 --settings ShipEngine.Tests/coverage.runsettings

- name: Move generated lcov file to expected location
shell: bash
Expand Down Expand Up @@ -117,10 +101,10 @@ jobs:
- uses: actions/checkout@v2

# Setup Dotnet if release was created
- name: Setup dotnet 5.0.x
- name: Setup dotnet 8.0.x
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
dotnet-version: 8.0.x

- name: publish on version change
id: publish_nuget
Expand Down

0 comments on commit ad9fc21

Please sign in to comment.