diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 4988b0b..509815e 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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 @@ -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: | @@ -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 }} diff --git a/.github/workflows/test-pr.yml b/.github/workflows/test-pr.yml index 2c336e1..5b37ca4 100644 --- a/.github/workflows/test-pr.yml +++ b/.github/workflows/test-pr.yml @@ -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 }} diff --git a/.github/workflows/test-smoke.yml b/.github/workflows/test-smoke.yml index fd0f93a..2e8a414 100644 --- a/.github/workflows/test-smoke.yml +++ b/.github/workflows/test-smoke.yml @@ -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 @@ -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