2025-01-23 18:15:21 +01:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths-ignore:
|
|
|
|
- Wiki/**
|
|
|
|
- Benchmarks/**
|
|
|
|
- .run/**
|
|
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
preprocess:
|
2025-01-23 18:25:21 +01:00
|
|
|
env:
|
|
|
|
RUNNER_TOOL_CACHE: /toolcache
|
2025-01-23 18:15:21 +01:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
outputs:
|
|
|
|
sanitized_branch_name: ${{ steps.sanitize.outputs.sanitized_branch_name }}
|
|
|
|
steps:
|
|
|
|
- name: Sanitize branch name
|
|
|
|
id: sanitize
|
|
|
|
run: echo "::set-output name=sanitized_branch_name::$(echo ${{ github.ref_name }} | sed 's/\//-/g')"
|
|
|
|
|
|
|
|
build:
|
2025-01-23 18:25:21 +01:00
|
|
|
env:
|
|
|
|
RUNNER_TOOL_CACHE: /toolcache
|
2025-01-23 18:15:21 +01:00
|
|
|
runs-on: ubuntu-latest
|
2025-01-23 18:25:21 +01:00
|
|
|
container: ghcr.io/catthehacker/ubuntu:act-latest
|
2025-01-23 18:15:21 +01:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
2025-01-23 18:25:21 +01:00
|
|
|
- name: Set up QEMU
|
|
|
|
uses: docker/setup-qemu-action@v3
|
|
|
|
with:
|
|
|
|
cache-image: true
|
|
|
|
- name: Set up Docker Buildx
|
|
|
|
uses: docker/setup-buildx-action@v3
|
2025-01-23 18:15:21 +01:00
|
|
|
- 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
|
2025-01-23 18:25:21 +01:00
|
|
|
mkdir /tmp/qodana/
|
|
|
|
mkdir /tmp/qodana/caches
|
2025-01-23 18:15:21 +01:00
|
|
|
- name: Qodana Scan
|
|
|
|
uses: https://github.com/JetBrains/qodana-action@v2024.3
|
|
|
|
with:
|
2025-01-23 18:25:21 +01:00
|
|
|
use-caches: false
|
|
|
|
use-cache: false
|
2025-01-23 18:15:21 +01:00
|
|
|
env:
|
|
|
|
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
|