Skip to content
Merged

Dev #2278

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
b33e165
AB#32613 enable workflow_dispatch on main branch
DarylTodosichuk Apr 13, 2026
e5a6785
Merge pull request #2259 from bcgov/feature/AB#32613-sonarcloud-githu…
DarylTodosichuk Apr 13, 2026
60ae0c9
AB32613 Move read permissions from workflow level to individual job l…
DarylTodosichuk Apr 13, 2026
7cb3c33
Merge pull request #2260 from bcgov/feature/AB#32613-sonarcloud-githu…
DarylTodosichuk Apr 13, 2026
ae8de3e
AB#32613 Update sonar.coverage.exclusions to run minimal code coverage
DarylTodosichuk Apr 13, 2026
bcb68e0
Merge pull request #2262 from bcgov/feature/AB#32613-sonarcloud-githu…
DarylTodosichuk Apr 13, 2026
eee8117
AB#32613 Add SonarCloud-specific configuration for code coverage
DarylTodosichuk Apr 13, 2026
95e7af9
Merge pull request #2265 from bcgov/feature/AB#32613-sonarcloud-githu…
DarylTodosichuk Apr 13, 2026
81268d6
AB#32613 fixing SonarCloud code coverage path
DarylTodosichuk Apr 13, 2026
cf5d3ac
AB#32133 update report config for submissions report label
AndreGAot Apr 13, 2026
110e25a
AB#32613 Code coverage step is hanging
DarylTodosichuk Apr 13, 2026
0e1ace0
AB#32613 FIx Generate minimal code coverage data step
DarylTodosichuk Apr 13, 2026
e81b4b9
Merge pull request #2269 from bcgov/feature/AB#32613-sonarcloud-githu…
DarylTodosichuk Apr 13, 2026
899ff4a
AB#32133 copilot fixes
AndreGAot Apr 13, 2026
b64fa22
Merge pull request #2267 from bcgov/feature/AB#32133-label-report-con…
AndreGAot Apr 13, 2026
00e4564
AB#32613 Move Unity.GrantManager.SonarScan.Tests into workflow file
DarylTodosichuk Apr 13, 2026
95ce7b2
Merge pull request #2271 from bcgov/feature/AB#32613-sonarcloud-githu…
DarylTodosichuk Apr 13, 2026
0db65e4
AB#32613 file path patterns in sonar-project.properties
DarylTodosichuk Apr 13, 2026
65ff303
AB#32613 The 80% code coverage requirement failure resolved
DarylTodosichuk Apr 13, 2026
83b3c5c
AB#32613 Disable CI based code scanning using automatic scans
DarylTodosichuk Apr 13, 2026
4930f0b
AB#32613 enable pull request scans
DarylTodosichuk Apr 13, 2026
811b5ca
Merge pull request #2275 from bcgov/feature/AB#32613-sonarcloud-githu…
DarylTodosichuk Apr 13, 2026
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
8 changes: 6 additions & 2 deletions .github/workflows/docker-build-dev.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
name: Dev - Build & Push docker images
permissions:
contents: read

on:
push:
Expand Down Expand Up @@ -42,6 +40,8 @@ jobs:
Setup:
runs-on: ubuntu-latest
environment: dev
permissions:
contents: read
steps:
- name: Get variables
run: |
Expand All @@ -61,6 +61,8 @@ jobs:
needs: [Setup]
runs-on: ubuntu-latest
environment: dev
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v6
Expand Down Expand Up @@ -111,6 +113,8 @@ jobs:
needs: [Setup,Branch,PushVariables]
runs-on: ubuntu-latest
environment: dev
permissions:
contents: read
steps:
- uses: actions/checkout@v6
- name: Build Docker images
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/docker-build-main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
name: Main - Build & Push docker images
permissions:
contents: read

on:
push:
Expand Down Expand Up @@ -42,6 +40,8 @@ jobs:
Setup:
runs-on: ubuntu-latest
environment: main
permissions:
contents: read
steps:
- name: Get variables
run: |
Expand All @@ -61,6 +61,8 @@ jobs:
needs: [Setup]
runs-on: ubuntu-latest
environment: main
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v6
Expand Down Expand Up @@ -168,6 +170,8 @@ jobs:
needs: [Setup,Branch,GenerateTag,PushVariables]
runs-on: ubuntu-latest
environment: main
permissions:
contents: read
steps:
- uses: actions/checkout@v6
- name: Build Docker images
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/docker-build-test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
name: Test - Build & Push docker images
permissions:
contents: read

on:
push:
Expand Down Expand Up @@ -42,6 +40,8 @@ jobs:
Setup:
runs-on: ubuntu-latest
environment: test
permissions:
contents: read
steps:
- name: Get variables
run: |
Expand All @@ -61,6 +61,8 @@ jobs:
needs: [Setup]
runs-on: ubuntu-latest
environment: test
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v6
Expand Down Expand Up @@ -89,6 +91,8 @@ jobs:
needs: [Setup,Branch]
runs-on: ubuntu-latest
environment: test
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v6
Expand All @@ -114,6 +118,7 @@ jobs:
needs: [Setup,Branch,GenerateTag]
permissions:
actions: write
contents: read
runs-on: ubuntu-latest
environment: test
steps:
Expand Down Expand Up @@ -144,6 +149,8 @@ jobs:
needs: [Setup,Branch,GenerateTag,PushVariables]
runs-on: ubuntu-latest
environment: test
permissions:
contents: read
steps:
- uses: actions/checkout@v6
- name: Build Docker images
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/manual-trigger.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# This is a basic workflow that is manually triggered

name: Workflow - Run manual trigger
permissions:
contents: read

# Controls when the action will run. Workflow runs when manually triggered
on:
Expand Down Expand Up @@ -39,6 +37,8 @@ jobs:
Setup:
runs-on: ubuntu-latest
environment: ${{ inputs.name }}
permissions:
contents: read
steps:
- name: Get variables
run: |
Expand All @@ -57,6 +57,8 @@ jobs:
needs: [Setup]
runs-on: ubuntu-latest
environment: ${{ inputs.name }}
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v6
Expand Down Expand Up @@ -86,6 +88,7 @@ jobs:
environment: ${{ inputs.name }}
permissions:
actions: write
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v6
Expand All @@ -106,6 +109,8 @@ jobs:
needs: [Setup,Branch,PushVariables]
runs-on: ubuntu-latest
environment: ${{ inputs.name }}
permissions:
contents: read
steps:
- uses: actions/checkout@v6
- name: Build Docker images
Expand Down
13 changes: 9 additions & 4 deletions .github/workflows/pr-check-dev-branch.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
name: Dev - Branch Protection - CI & Unit Tests

permissions:
contents: read
pull-requests: write

on:
pull_request:
branches:
Expand All @@ -15,6 +11,8 @@ jobs:
# ---------------------------------------------------------------------
check-dev-branch:
runs-on: ubuntu-latest
permissions:
contents: read
outputs:
branch-allowed: ${{ steps.branch-check.outputs.allowed }}
steps:
Expand All @@ -41,6 +39,8 @@ jobs:
needs: check-dev-branch
if: needs.check-dev-branch.outputs.branch-allowed == 'true'
runs-on: ubuntu-latest
permissions:
contents: read
outputs:
matrix: ${{ steps.discover.outputs.matrix }}
steps:
Expand All @@ -60,6 +60,8 @@ jobs:
test-project:
needs: discover-test-projects
runs-on: ubuntu-latest
permissions:
contents: read

strategy:
fail-fast: false
Expand Down Expand Up @@ -96,6 +98,9 @@ jobs:
aggregate-results:
needs: test-project
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/download-artifact@v4
with:
Expand Down
14 changes: 10 additions & 4 deletions .github/workflows/pr-check-main-branch.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
name: Main - Branch Protection - CI & Unit Tests
permissions:
contents: read
pull-requests: write
issues: write

on:
pull_request:
Expand All @@ -15,6 +11,8 @@ jobs:
# ---------------------------------------------------------------------
check-main-branch:
runs-on: ubuntu-latest
permissions:
contents: read
outputs:
branch-allowed: ${{ steps.branch-check.outputs.allowed }}
steps:
Expand All @@ -37,6 +35,8 @@ jobs:
needs: check-main-branch
if: needs.check-main-branch.outputs.branch-allowed == 'true'
runs-on: ubuntu-latest
permissions:
contents: read
outputs:
matrix: ${{ steps.discover.outputs.matrix }}
steps:
Expand All @@ -56,6 +56,8 @@ jobs:
test-project:
needs: discover-test-projects
runs-on: ubuntu-latest
permissions:
contents: read

strategy:
fail-fast: false
Expand Down Expand Up @@ -92,6 +94,10 @@ jobs:
aggregate-results:
needs: test-project
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
issues: write
steps:
- uses: actions/download-artifact@v4
with:
Expand Down
14 changes: 10 additions & 4 deletions .github/workflows/pr-check-test-branch.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
name: Test - Branch Protection - CI & Unit Tests
permissions:
contents: read
pull-requests: write
issues: write

on:
pull_request:
Expand All @@ -15,6 +11,8 @@ jobs:
# ---------------------------------------------------------------------
check-test-branch:
runs-on: ubuntu-latest
permissions:
contents: read
outputs:
branch-allowed: ${{ steps.branch-check.outputs.allowed }}
steps:
Expand All @@ -39,6 +37,8 @@ jobs:
needs: check-test-branch
if: needs.check-test-branch.outputs.branch-allowed == 'true'
runs-on: ubuntu-latest
permissions:
contents: read
outputs:
matrix: ${{ steps.discover.outputs.matrix }}
steps:
Expand All @@ -58,6 +58,8 @@ jobs:
test-project:
needs: discover-test-projects
runs-on: ubuntu-latest
permissions:
contents: read

strategy:
fail-fast: false
Expand Down Expand Up @@ -94,6 +96,10 @@ jobs:
aggregate-results:
needs: test-project
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
issues: write
steps:
- uses: actions/download-artifact@v4
with:
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/sonarsource-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,14 @@ on:
# - main
# pull_request:
# types: [opened, synchronize, reopened]
# workflow_dispatch:
workflow_dispatch:

permissions:
contents: read
pull-requests: write
checks: write
security-events: write


jobs:
sonarcloud:
name: SonarCloud
Expand Down Expand Up @@ -79,10 +78,6 @@ jobs:
working-directory: ./applications/Unity.GrantManager
run: dotnet build Unity.GrantManager.sln --no-restore

- name: Run tests with coverage
working-directory: ./applications/Unity.GrantManager
run: dotnet test Unity.GrantManager.sln --no-build --verbosity normal --collect:"XPlat Code Coverage" --results-directory ./TestResults/

- name: SonarCloud Scan
uses: SonarSource/sonarqube-scan-action@v7
with:
Expand Down
Loading
Loading