ci: attempt3
Signed-off-by: Timothy Schenk <admin@rainote.dev>
This commit is contained in:
parent
a2d9780465
commit
4c1bbaa898
4 changed files with 68 additions and 17 deletions
|
@ -12,6 +12,8 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
preprocess:
|
preprocess:
|
||||||
|
env:
|
||||||
|
RUNNER_TOOL_CACHE: /toolcache
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
sanitized_branch_name: ${{ steps.sanitize.outputs.sanitized_branch_name }}
|
sanitized_branch_name: ${{ steps.sanitize.outputs.sanitized_branch_name }}
|
||||||
|
@ -21,6 +23,8 @@ jobs:
|
||||||
run: echo "::set-output name=sanitized_branch_name::$(echo ${{ github.ref_name }} | sed 's/\//-/g')"
|
run: echo "::set-output name=sanitized_branch_name::$(echo ${{ github.ref_name }} | sed 's/\//-/g')"
|
||||||
|
|
||||||
build:
|
build:
|
||||||
|
env:
|
||||||
|
RUNNER_TOOL_CACHE: /toolcache
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
@ -35,6 +39,8 @@ jobs:
|
||||||
dotnet build Continuity.AuthServer -c Release
|
dotnet build Continuity.AuthServer -c Release
|
||||||
|
|
||||||
sonarqube:
|
sonarqube:
|
||||||
|
env:
|
||||||
|
RUNNER_TOOL_CACHE: /toolcache
|
||||||
needs: build
|
needs: build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: catthehacker/ubuntu:act-latest@sha256:5f2ff408985b10de9da4a8ea735b7f07d4f98c61608180ebb8964deb37f7580a
|
container: catthehacker/ubuntu:act-latest@sha256:5f2ff408985b10de9da4a8ea735b7f07d4f98c61608180ebb8964deb37f7580a
|
||||||
|
@ -68,6 +74,8 @@ jobs:
|
||||||
dotnet sonarscanner end /d:sonar.login="${{ secrets.SONAR_TOKEN }}"
|
dotnet sonarscanner end /d:sonar.login="${{ secrets.SONAR_TOKEN }}"
|
||||||
|
|
||||||
sbom-scan:
|
sbom-scan:
|
||||||
|
env:
|
||||||
|
RUNNER_TOOL_CACHE: /toolcache
|
||||||
needs: build
|
needs: build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
@ -98,6 +106,8 @@ jobs:
|
||||||
bomFilename: ${{ github.workspace }}/bom.xml
|
bomFilename: ${{ github.workspace }}/bom.xml
|
||||||
|
|
||||||
container-build:
|
container-build:
|
||||||
|
env:
|
||||||
|
RUNNER_TOOL_CACHE: /toolcache
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: catthehacker/ubuntu:act-latest@sha256:5f2ff408985b10de9da4a8ea735b7f07d4f98c61608180ebb8964deb37f7580a
|
container: catthehacker/ubuntu:act-latest@sha256:5f2ff408985b10de9da4a8ea735b7f07d4f98c61608180ebb8964deb37f7580a
|
||||||
needs: [build, preprocess]
|
needs: [build, preprocess]
|
||||||
|
@ -138,6 +148,8 @@ jobs:
|
||||||
platforms: linux/amd64, linux/arm64
|
platforms: linux/amd64, linux/arm64
|
||||||
|
|
||||||
container-sbom-scan:
|
container-sbom-scan:
|
||||||
|
env:
|
||||||
|
RUNNER_TOOL_CACHE: /toolcache
|
||||||
needs: [container-build, preprocess]
|
needs: [container-build, preprocess]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: catthehacker/ubuntu:act-latest@sha256:5f2ff408985b10de9da4a8ea735b7f07d4f98c61608180ebb8964deb37f7580a
|
container: catthehacker/ubuntu:act-latest@sha256:5f2ff408985b10de9da4a8ea735b7f07d4f98c61608180ebb8964deb37f7580a
|
||||||
|
@ -179,6 +191,8 @@ jobs:
|
||||||
bomFilename: ${{ github.workspace }}/container-bom.json
|
bomFilename: ${{ github.workspace }}/container-bom.json
|
||||||
|
|
||||||
generate-licences:
|
generate-licences:
|
||||||
|
env:
|
||||||
|
RUNNER_TOOL_CACHE: /toolcache
|
||||||
needs: [build, preprocess]
|
needs: [build, preprocess]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: catthehacker/ubuntu:act-latest@sha256:5f2ff408985b10de9da4a8ea735b7f07d4f98c61608180ebb8964deb37f7580a
|
container: catthehacker/ubuntu:act-latest@sha256:5f2ff408985b10de9da4a8ea735b7f07d4f98c61608180ebb8964deb37f7580a
|
||||||
|
|
|
@ -9,6 +9,8 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
preprocess:
|
preprocess:
|
||||||
|
env:
|
||||||
|
RUNNER_TOOL_CACHE: /toolcache
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
sanitized_branch_name: ${{ steps.sanitize.outputs.sanitized_branch_name }}
|
sanitized_branch_name: ${{ steps.sanitize.outputs.sanitized_branch_name }}
|
||||||
|
@ -18,6 +20,8 @@ jobs:
|
||||||
run: echo "::set-output name=sanitized_branch_name::$(echo ${{ github.ref_name }} | sed 's/\//-/g')"
|
run: echo "::set-output name=sanitized_branch_name::$(echo ${{ github.ref_name }} | sed 's/\//-/g')"
|
||||||
|
|
||||||
build:
|
build:
|
||||||
|
env:
|
||||||
|
RUNNER_TOOL_CACHE: /toolcache
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
@ -32,6 +36,8 @@ jobs:
|
||||||
dotnet build Continuity.AuthServer -c Release
|
dotnet build Continuity.AuthServer -c Release
|
||||||
|
|
||||||
sbom-scan:
|
sbom-scan:
|
||||||
|
env:
|
||||||
|
RUNNER_TOOL_CACHE: /toolcache
|
||||||
needs: build
|
needs: build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
@ -62,6 +68,8 @@ jobs:
|
||||||
bomFilename: ${{ github.workspace }}/bom.xml
|
bomFilename: ${{ github.workspace }}/bom.xml
|
||||||
|
|
||||||
container-build:
|
container-build:
|
||||||
|
env:
|
||||||
|
RUNNER_TOOL_CACHE: /toolcache
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: catthehacker/ubuntu:act-latest@sha256:5f2ff408985b10de9da4a8ea735b7f07d4f98c61608180ebb8964deb37f7580a
|
container: catthehacker/ubuntu:act-latest@sha256:5f2ff408985b10de9da4a8ea735b7f07d4f98c61608180ebb8964deb37f7580a
|
||||||
needs: [build, preprocess]
|
needs: [build, preprocess]
|
||||||
|
@ -102,6 +110,8 @@ jobs:
|
||||||
platforms: linux/amd64, linux/arm64
|
platforms: linux/amd64, linux/arm64
|
||||||
|
|
||||||
container-sbom-scan:
|
container-sbom-scan:
|
||||||
|
env:
|
||||||
|
RUNNER_TOOL_CACHE: /toolcache
|
||||||
needs: [container-build, preprocess]
|
needs: [container-build, preprocess]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: catthehacker/ubuntu:act-latest@sha256:5f2ff408985b10de9da4a8ea735b7f07d4f98c61608180ebb8964deb37f7580a
|
container: catthehacker/ubuntu:act-latest@sha256:5f2ff408985b10de9da4a8ea735b7f07d4f98c61608180ebb8964deb37f7580a
|
||||||
|
@ -143,6 +153,8 @@ jobs:
|
||||||
bomFilename: ${{ github.workspace }}/container-bom.json
|
bomFilename: ${{ github.workspace }}/container-bom.json
|
||||||
|
|
||||||
generate-licences:
|
generate-licences:
|
||||||
|
env:
|
||||||
|
RUNNER_TOOL_CACHE: /toolcache
|
||||||
needs: [build, preprocess]
|
needs: [build, preprocess]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: catthehacker/ubuntu:act-latest@sha256:5f2ff408985b10de9da4a8ea735b7f07d4f98c61608180ebb8964deb37f7580a
|
container: catthehacker/ubuntu:act-latest@sha256:5f2ff408985b10de9da4a8ea735b7f07d4f98c61608180ebb8964deb37f7580a
|
||||||
|
|
|
@ -8,6 +8,8 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
preprocess:
|
preprocess:
|
||||||
|
env:
|
||||||
|
RUNNER_TOOL_CACHE: /toolcache
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
sanitized_branch_name: ${{ steps.sanitize.outputs.sanitized_branch_name }}
|
sanitized_branch_name: ${{ steps.sanitize.outputs.sanitized_branch_name }}
|
||||||
|
@ -16,23 +18,13 @@ jobs:
|
||||||
id: sanitize
|
id: sanitize
|
||||||
run: echo "::set-output name=sanitized_branch_name::$(echo ${{ github.ref_name }} | sed 's/\//-/g')"
|
run: echo "::set-output name=sanitized_branch_name::$(echo ${{ github.ref_name }} | sed 's/\//-/g')"
|
||||||
|
|
||||||
build:
|
qodana:
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- name: Setup dotnet
|
|
||||||
uses: https://github.com/actions/setup-dotnet@v3
|
|
||||||
with:
|
|
||||||
global-json-file: global.json
|
|
||||||
- name: Install dependencies
|
|
||||||
run: dotnet restore
|
|
||||||
- name: Build
|
|
||||||
run: |
|
|
||||||
dotnet build Continuity.AuthServer -c Release
|
|
||||||
- name: Qodana Scan
|
|
||||||
uses: https://github.com/JetBrains/qodana-action@v2024.3
|
|
||||||
with:
|
|
||||||
# args: --linter,jetbrains/qodana-dotnet:2024.3
|
|
||||||
# args: --linter,jetbrains/qodana-cdnet:2024.3-eap
|
|
||||||
env:
|
env:
|
||||||
|
RUNNER_TOOL_CACHE: /toolcache
|
||||||
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
|
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container: jetbrains/qodana-dotnet:2024.3
|
||||||
|
steps:
|
||||||
|
- name: Idk
|
||||||
|
run: |
|
||||||
|
qodana scan
|
||||||
|
|
33
qodana.yaml
Normal file
33
qodana.yaml
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
version: '1.0'
|
||||||
|
linter: jetbrains/qodana-dotnet:2024.3
|
||||||
|
bootstrap: curl -fsSL https://dot.net/v1/dotnet-install.sh | bash -s --
|
||||||
|
--jsonfile /data/project/global.json -i /usr/share/dotnet
|
||||||
|
dotnet:
|
||||||
|
solution: "Continuity.slnx"
|
||||||
|
include:
|
||||||
|
- name: HeapView.BoxingAllocation
|
||||||
|
- name: ClassNeverInstantiated.Global
|
||||||
|
- name: ClassWithVirtualMembersNeverInherited.Global
|
||||||
|
- name: HeapView.ClosureAllocation
|
||||||
|
- name: HeapView.DelegateAllocation
|
||||||
|
- name: MemberCanBePrivate.Global
|
||||||
|
- name: HeapView.ObjectAllocation
|
||||||
|
- name: HeapView.ObjectAllocation.Evident
|
||||||
|
- name: HeapView.ObjectAllocation.Possible
|
||||||
|
- name: PropertyCanBeMadeInitOnly.Global
|
||||||
|
- name: ReplaceSliceWithRangeIndexer
|
||||||
|
- name: MA0003
|
||||||
|
- name: MA0106
|
||||||
|
- name: CA1050
|
||||||
|
- name: MA0018
|
||||||
|
- name: MA0042
|
||||||
|
- name: CA1069
|
||||||
|
- name: CA1872
|
||||||
|
- name: MA0001
|
||||||
|
- name: UnusedType.Global
|
||||||
|
- name: UnusedMemberInSuper.Global
|
||||||
|
- name: UnusedMember.Global
|
||||||
|
- name: UnassignedField.Global
|
||||||
|
- name: UseCollectionExpression
|
||||||
|
- name: UseObjectOrCollectionInitializer
|
||||||
|
- name: SuggestVarOrType_BuiltInTypes
|
Loading…
Add table
Reference in a new issue