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
24 changes: 12 additions & 12 deletions .github/workflows/build-and-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,17 @@ jobs:
ASPNETCORE_ENVIRONMENT: Staging
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.

- name: Set up .NET Core
uses: actions/setup-dotnet@v4
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: ${{ env.DOTNET_VERSION }}

- name: Set up dependency caching for faster builds
uses: actions/cache@v4
uses: actions/cache@v5
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
Expand All @@ -49,19 +49,19 @@ jobs:
run: dotnet build --no-restore /p:TreatWarningsAsErrors=True

- name: dotnet test
run: dotnet test --logger trx --results-directory "${{ runner.temp }}" --no-build
run: dotnet test --logger trx --results-directory ${{ github.workspace }}/TestOutput --no-build

- name: dotnet test
uses: NasAmin/trx-parser@v0.6.0
- name: generate test report
uses: NasAmin/trx-parser@v0.8.1
with:
TRX_PATH: "${{ runner.temp }}"
TRX_PATH: "${{ github.workspace }}/TestOutput"
REPO_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

- name: dotnet publish
run: dotnet publish src/InitializrService/Steeltoe.InitializrService.csproj -o publish

- name: Upload artifact for deployment job
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: published-app
path: publish
Expand All @@ -78,12 +78,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Download artifact from build job
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
name: published-app

- name: Login to Azure
uses: azure/login@v2
uses: azure/login@v3
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}

Expand All @@ -102,7 +102,7 @@ jobs:

- name: If PR, comment with the preview link
if: ${{ github.event_name == 'pull_request' }}
uses: mshick/add-pr-comment@v2
uses: mshick/add-pr-comment@v3
with:
message: |
## Preview link: https://${{ vars.AZURE_WEBAPP_NAME }}-${{ env.SLOT_NAME }}.azurewebsites.net
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pr-cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

steps:
- name: Log into Azure CLI with service principal
uses: azure/login@v2
uses: azure/login@v3
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}

Expand Down Expand Up @@ -47,13 +47,13 @@ jobs:
steps:
- name: Generate GitHub App Token
id: app-token
uses: actions/create-github-app-token@v1
uses: actions/create-github-app-token@v3
with:
app-id: ${{ secrets.ENV_CLEANUP_APP_ID }}
private-key: ${{ secrets.ENV_CLEANUP_APP_PRIVATE_KEY }}

- name: Delete Deployment Environment
uses: strumwolf/delete-deployment-environment@v3
uses: strumwolf/delete-deployment-environment@v4
with:
environment: "pr-${{ github.event.number }}"
token: ${{ steps.app-token.outputs.token }}
2 changes: 1 addition & 1 deletion .github/workflows/stage-prod-swap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

steps:
- name: Log into Azure CLI with service principal
uses: azure/login@v2
uses: azure/login@v3
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}

Expand Down
Loading