Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 11 additions & 9 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ jobs:
MANTECA_BASE_URL: ${{ secrets.MANTECA_BASE_URL }}
MANTECA_IDLE_NUMBER: ${{ secrets.MANTECA_IDLE_NUMBER }}
OPERATING_SYSTEM: ubuntu-latest
DOTNET_VERSION: 8.0.x
DOTNET_VERSION: 10.0.x

steps:
steps:
- name: Set Release Version
run: echo "RELEASE_VERSION=${TAG#v}" >> $GITHUB_ENV
env:
TAG: ${{ github.event.release.tag_name }}

- name: Check Release Tag Format
run: |
if ! [[ $RELEASE_VERSION =~ ^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)$ ]]; then
Expand All @@ -45,14 +45,14 @@ jobs:
echo 'Please update your tag to match the expected regex pattern'
exit 1
fi

- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@v7

- name: Setup Dotnet
uses: actions/setup-dotnet@v5
uses: actions/setup-dotnet@v6
with:
dotnet-version: '8.0.x'
dotnet-version: "10.0.x"

- name: Set OpenAPI Generator Version
run: |
Expand All @@ -68,11 +68,13 @@ jobs:
additional-properties: --additional-properties=packageVersion=$RELEASE_VERSION

- name: Run Unit Tests
run: dotnet test src/Bandwidth.Standard.Test --filter DisplayName~Bandwidth.Standard.Test.Unit
run: |
npm install -g @stoplight/prism-cli
prism mock ./bandwidth.yml & dotnet test src/Bandwidth.Standard.Test --filter DisplayName~Bandwidth.Standard.Test.Unit

- name: Pack NuGet package
run: dotnet pack --configuration Release $BW_PROJECT_NAME -p:PackageVersion=$RELEASE_VERSION

- name: Publish NuGet package
env:
NUGET_KEY: ${{ secrets.NUGET_KEY }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ jobs:
strategy:
matrix:
os: [windows-2022, windows-2025, ubuntu-22.04, ubuntu-24.04]
dotnet: [6.0.x, 7.0.x, 8.0.x, 10.0.x]
dotnet: [7.0.x, 8.0.x, 10.0.x]
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@v7

- name: Setup .NET
uses: actions/setup-dotnet@v5
uses: actions/setup-dotnet@v6
with:
dotnet-version: ${{ matrix.dotnet }}

Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/test-smoke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,17 @@ jobs:
MANTECA_APPLICATION_ID: ${{ secrets.MANTECA_APPLICATION_ID }}
steps:
- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@v7

- name: Setup .NET
uses: actions/setup-dotnet@v5
uses: actions/setup-dotnet@v6
with:
dotnet-version: 8.0.x
dotnet-version: 10.0.x

- name: Run Tests
env:
OPERATING_SYSTEM: ubuntu-latest
DOTNET_VERSION: 8.0.x
DOTNET_VERSION: 10.0.x
run: |
dotnet test src/Bandwidth.Standard.Test --filter DisplayName~Bandwidth.Standard.Test.Smoke

Expand All @@ -64,17 +64,17 @@ jobs:
MANTECA_APPLICATION_ID: ${{ secrets.MANTECA_UP_APPLICATION_ID }}
steps:
- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@v7

- name: Setup .NET
uses: actions/setup-dotnet@v5
uses: actions/setup-dotnet@v6
with:
dotnet-version: 8.0.x
dotnet-version: 10.0.x

- name: Run Tests
env:
OPERATING_SYSTEM: ubuntu-latest
DOTNET_VERSION: 8.0.x
DOTNET_VERSION: 10.0.x
run: |
dotnet test src/Bandwidth.Standard.Test --filter DisplayName~Bandwidth.Standard.Test.Smoke

Expand Down
Loading