Skip to content

Commit cb77785

Browse files
Run SonarCloud analysis on windows agent
1 parent 98f39cc commit cb77785

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/post-integration.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,49 @@ env:
1515
jobs:
1616
merge-to-stable:
1717
runs-on: ubuntu-latest
18+
steps:
19+
- name: 🛒 Checkout repository
20+
uses: actions/checkout@v2
21+
with:
22+
fetch-depth: 0
23+
token: ${{ secrets.PAT_WORKFLOWS }}
24+
25+
- name: ⚛️ Sets environment variables - branch-name
26+
uses: nelonoel/branch-name@v1.0.1
27+
28+
- name: ⚛️ Sets environment variables - Nerdbank.GitVersioning
29+
uses: dotnet/nbgv@master
30+
with:
31+
setAllVars: true
32+
33+
- name: 🧹 Clean
34+
run: dotnet clean -c Release && dotnet nuget locals all --clear
35+
36+
- name: 🔁 Restore packages
37+
run: dotnet restore
38+
39+
- name: 🛠️ Build
40+
run: dotnet build -c Release --no-restore /p:UseSourceLink=true
41+
42+
- name: 🧪 Run unit tests
43+
run: dotnet test -c Release --no-build
44+
45+
- name: ⏩ Merge to stable-branch
46+
run: |
47+
git config --local user.email ${{ env.ATC_EMAIL }}
48+
git config --local user.name ${{ env.ATC_NAME }}
49+
git checkout stable
50+
git merge --ff-only main
51+
git push origin stable
52+
53+
- name: 🗳️ Creating library package for pre-release
54+
run: dotnet pack -c Release --no-restore -o ${GITHUB_WORKSPACE}/packages -p:RepositoryBranch=$BRANCH_NAME
55+
56+
- name: 📦 Push packages to GitHub Package Registry
57+
run: dotnet nuget push ${GITHUB_WORKSPACE}/packages/'Atc.Azure.Messaging.'${NBGV_NuGetPackageVersion}'.nupkg' -k ${{ secrets.GITHUB_TOKEN }} -s ${{ env.NUGET_REPO_URL }} --skip-duplicate
58+
59+
sonar-cloud:
60+
runs-on: windows-latest
1861
steps:
1962
- name: 🛒 Checkout repository
2063
uses: actions/checkout@v2

0 commit comments

Comments
 (0)