2026-02-02 00:39:06 +00:00
|
|
|
# This workflow will build a .NET project
|
|
|
|
|
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
|
|
|
|
|
name: Dotnet build and test
|
|
|
|
|
|
|
|
|
|
on:
|
|
|
|
|
workflow_dispatch:
|
|
|
|
|
inputs:
|
|
|
|
|
logLevel:
|
|
|
|
|
description: 'Log level'
|
|
|
|
|
required: true
|
|
|
|
|
default: 'warning'
|
|
|
|
|
type: choice
|
|
|
|
|
options:
|
|
|
|
|
- info
|
|
|
|
|
- warning
|
|
|
|
|
- debug
|
|
|
|
|
tags:
|
|
|
|
|
description: 'Test scenario tags'
|
|
|
|
|
required: false
|
|
|
|
|
type: boolean
|
|
|
|
|
push:
|
|
|
|
|
branches: [ "main" ]
|
|
|
|
|
pull_request:
|
2026-08-18 21:25:06 +01:00
|
|
|
branches: [ "main", "release/*" ]
|
2026-02-02 00:39:06 +00:00
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
build:
|
2026-08-16 13:03:17 +01:00
|
|
|
runs-on: docker
|
2026-08-26 04:52:57 +01:00
|
|
|
container:
|
2026-08-26 22:26:14 +01:00
|
|
|
image: pazof/yavsc-build-env:debian13-dotnet10-android36-jdk21-v1
|
2026-02-02 00:39:06 +00:00
|
|
|
steps:
|
2026-08-16 13:15:10 +01:00
|
|
|
- name: Clone yavsc
|
|
|
|
|
run: |
|
2026-08-16 13:27:36 +01:00
|
|
|
cd /src
|
2026-08-16 13:22:56 +01:00
|
|
|
git clone https://forgejo.pschneider.fr/notazof/yavsc.git _src
|
2026-08-16 13:15:10 +01:00
|
|
|
cd _src
|
2026-08-16 13:22:56 +01:00
|
|
|
if [ -n "${GITHUB_REF:-}" ]; then
|
2026-08-16 13:39:53 +01:00
|
|
|
git fetch origin "$GITHUB_REF"
|
2026-08-16 13:22:56 +01:00
|
|
|
git checkout FETCH_HEAD
|
|
|
|
|
fi
|
2026-08-16 13:39:53 +01:00
|
|
|
git submodule update --init --recursive
|
2026-08-26 01:42:59 +01:00
|
|
|
echo "✅ Checked out at $(git rev-parse HEAD) on $(git branch --show-current 2>/dev/null || echo detached HEAD)"
|
2026-08-26 17:13:20 +01:00
|
|
|
|
2026-02-02 00:39:06 +00:00
|
|
|
- name: Test
|
2026-08-25 23:06:25 +01:00
|
|
|
run: |
|
2026-08-26 05:44:46 +01:00
|
|
|
echo "🚀 Lancement des tests..."
|
2026-08-29 04:00:10 +01:00
|
|
|
cd /src/_src && dotnet test --verbosity normal && echo "✅ Success !" || echo "❌ Fail ($?)!"
|