Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/.github
diff options
context:
space:
mode:
authorLeitwolf112026-09-26 16:57:36 +0300
committerLeitwolf112026-09-26 16:57:36 +0300
commit07b91c2966ffe5daa9501f41436b3a45b3a2d774 (patch)
tree4a8771a38cbd7bc61735c3ae59b8b440f03d0d42 /.github
parent1855533fa44547e568471303530c67e5d2fa69c5 (diff)
downloadprogmaweb-07b91c2966ffe5daa9501f41436b3a45b3a2d774.tar.gz
Add Progmaweb frontend tests and full-stack security and coverage workflows
Diffstat (limited to '.github')
-rw-r--r--.github/codeql/codeql-config.yml10
-rw-r--r--.github/dependabot.yml20
-rw-r--r--.github/pull_request_template.md25
-rw-r--r--.github/workflows/backend.yml9
-rw-r--r--.github/workflows/codeql.yml50
-rw-r--r--.github/workflows/frontend.yml8
6 files changed, 121 insertions, 1 deletions
diff --git a/.github/codeql/codeql-config.yml b/.github/codeql/codeql-config.yml
new file mode 100644
index 0000000..e4b5b8d
--- /dev/null
+++ b/.github/codeql/codeql-config.yml
@@ -0,0 +1,10 @@
+# SPDX-FileCopyrightText: 2026 Progmasoft <support@progmasoft.com>
+# SPDX-License-Identifier: AGPL-3.0-or-later WITH AdditionRef-Progmasoft-Patent-Grant-1.1
+
+name: Progmaweb owned sources
+paths-ignore:
+ - apps/web/.next
+ - apps/web/node_modules
+ - '**/bin'
+ - '**/obj'
+
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
new file mode 100644
index 0000000..647cf0e
--- /dev/null
+++ b/.github/dependabot.yml
@@ -0,0 +1,20 @@
+# SPDX-FileCopyrightText: 2026 Progmasoft <support@progmasoft.com>
+# SPDX-License-Identifier: AGPL-3.0-or-later WITH AdditionRef-Progmasoft-Patent-Grant-1.1
+
+version: 2
+updates:
+ - package-ecosystem: github-actions
+ directory: /
+ schedule:
+ interval: weekly
+ - package-ecosystem: npm
+ directory: /
+ schedule:
+ interval: weekly
+ - package-ecosystem: nuget
+ directories:
+ - /apps/api
+ - /apps/api-tests
+ schedule:
+ interval: weekly
+
diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md
new file mode 100644
index 0000000..f4d6812
--- /dev/null
+++ b/.github/pull_request_template.md
@@ -0,0 +1,25 @@
+<!--
+SPDX-FileCopyrightText: 2026 Progmasoft <support@progmasoft.com>
+SPDX-License-Identifier: AGPL-3.0-or-later WITH AdditionRef-Progmasoft-Patent-Grant-1.1
+-->
+
+## User-facing change
+
+Describe the Progmasoft, account, or ViGet behavior changed. State whether a deployed route or persistent account data
+is affected.
+
+## Verification
+
+- [ ] Next.js check, frontend tests, lint, and build were run where relevant.
+- [ ] ASP.NET Core build and API tests were run where relevant.
+- [ ] en-US/de-DE, light/dark, accessibility, and small-screen behavior were considered for UI changes.
+- [ ] Auth, session, publisher identity, registry paths, and deployment compatibility were reviewed if affected.
+- [ ] No credentials, generated output, or unrelated files are included.
+
+Commands and results (including anything not run):
+
+```text
+
+```
+
+Screenshots or recordings for visual changes:
diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml
index e534f44..0aa2c83 100644
--- a/.github/workflows/backend.yml
+++ b/.github/workflows/backend.yml
@@ -23,6 +23,7 @@ on:
permissions:
contents: read
+ id-token: write
concurrency:
group: backend-${{ github.ref }}
@@ -41,4 +42,10 @@ jobs:
cache-dependency-path: "**/*.csproj"
- run: dotnet restore Progmaweb.slnx --locked-mode
- run: dotnet build Progmaweb.slnx --configuration Release --no-restore
- - run: dotnet test --project apps/api-tests/Progmaweb.Api.Tests.csproj --configuration Release --no-build
+ - run: dotnet test --project apps/api-tests/Progmaweb.Api.Tests.csproj --configuration Release --no-build --coverlet --coverlet-output-format cobertura
+ - uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
+ with:
+ use_oidc: true
+ files: TestResults/coverage.cobertura.xml
+ flags: progmaweb-backend
+ fail_ci_if_error: true
diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml
new file mode 100644
index 0000000..1f6db33
--- /dev/null
+++ b/.github/workflows/codeql.yml
@@ -0,0 +1,50 @@
+# SPDX-FileCopyrightText: 2026 Progmasoft <support@progmasoft.com>
+# SPDX-License-Identifier: AGPL-3.0-or-later WITH AdditionRef-Progmasoft-Patent-Grant-1.1
+
+name: CodeQL
+on:
+ push:
+ branches: [main]
+ pull_request:
+ schedule:
+ - cron: '37 4 * * 1'
+permissions:
+ actions: read
+ contents: read
+ security-events: write
+jobs:
+ analyze:
+ name: ${{ matrix.language }}
+ runs-on: ubuntu-latest
+ timeout-minutes: 45
+ strategy:
+ fail-fast: false
+ matrix:
+ include:
+ - language: actions
+ build_mode: none
+ - language: javascript-typescript
+ build_mode: none
+ - language: csharp
+ build_mode: manual
+ steps:
+ - uses: actions/checkout@v7
+ - uses: actions/setup-dotnet@v5
+ if: matrix.language == 'csharp'
+ with:
+ dotnet-version: 10.0.x
+ - uses: github/codeql-action/init@7999b86c43a865dc79d8923397f35af22de63401 # v4
+ with:
+ languages: ${{ matrix.language }}
+ build-mode: ${{ matrix.build_mode }}
+ config-file: ./.github/codeql/codeql-config.yml
+ queries: security-extended
+ - name: Build ASP.NET Core for extraction
+ if: matrix.language == 'csharp'
+ run: |
+ dotnet restore Progmaweb.slnx --locked-mode
+ dotnet build Progmaweb.slnx --configuration Release --no-restore
+ - uses: github/codeql-action/analyze@7999b86c43a865dc79d8923397f35af22de63401 # v4
+ with:
+ category: /language:${{ matrix.language }}
+
diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml
index cdbdb0a..87e17da 100644
--- a/.github/workflows/frontend.yml
+++ b/.github/workflows/frontend.yml
@@ -23,6 +23,7 @@ on:
permissions:
contents: read
+ id-token: write
concurrency:
group: frontend-${{ github.ref }}
@@ -44,5 +45,12 @@ jobs:
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm check
+ - run: pnpm test:coverage
- run: pnpm lint
- run: pnpm build
+ - uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
+ with:
+ use_oidc: true
+ files: apps/web/coverage/lcov.info
+ flags: progmaweb-frontend
+ fail_ci_if_error: true