yavsc/.forgejo/workflows/buildAndTest.yml
Paul Schneider 380b5d12c8
Some checks failed
Dotnet build and test / log-the-inputs (pull_request) Successful in 9s
Dotnet build and test / build (pull_request) Failing after 9s
ci: replace actions/checkout with manual git clone (image has no node)
The pazof/yavsc-build-env:debian12-dotnet10-android36-v1 image only
ships .NET 10 SDK + Android SDK + JDK 17, no Node. actions/checkout@v6
requires Node, so the job failed with 'exec: node not found'.

Replace actions/checkout with a direct git clone over HTTPS (Forgejo
anonymous is enabled), and init submodules recursively.

Also drop the bogus docker://image:tag runs-on: matcher, use just 'docker'
to match the runner's declared label name.
2026-08-16 13:15:10 +01:00

58 lines
1.5 KiB
YAML

# 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:
branches: [ "main" ]
jobs:
log-the-inputs:
runs-on: debian-latest
steps:
- run: |
echo "Log level: $LEVEL"
echo "Tags: $TAGS"
echo "Environment: $ENVIRONMENT"
env:
LEVEL: ${{ inputs.logLevel }}
TAGS: ${{ inputs.tags }}
build:
runs-on: docker
steps:
- name: Clone yavsc
run: |
cd "$RUNNER_WORKSPACE"
git clone --depth 1 --branch "${GITHUB_REF_NAME:-main}" \
https://forgejo.pschneider.fr/notazof/yavsc.git _src
cd _src
git submodule update --init --recursive --depth 1
- name: Restore dependencies
working-directory: ${{ runner.workspace }}/_src
run: dotnet restore
- name: Build
working-directory: ${{ runner.workspace }}/_src
run: dotnet build --no-restore
- name: Test
working-directory: ${{ runner.workspace }}/_src
run: dotnet test --no-build --verbosity normal