Test gitea action
This commit is contained in:
parent
9370325cc2
commit
c1b268f185
25
.gitea/workflows/build.yaml
Normal file
25
.gitea/workflows/build.yaml
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
name: Build
|
||||||
|
run-name: Build for ${{ gitea.actor }}
|
||||||
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
Build:
|
||||||
|
runs-on: [self-hosted, linux]
|
||||||
|
container:
|
||||||
|
image: mcr.microsoft.com/dotnet/sdk:9.0-alpine
|
||||||
|
env:
|
||||||
|
HUSKY: 0
|
||||||
|
TERM: xterm
|
||||||
|
DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION: true
|
||||||
|
DOTNET_CONSOLE_ANSI_COLOR: true
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- name: Restore
|
||||||
|
run: dotnet restore PkmnLib.NET.slnx --nologo --verbosity quiet
|
||||||
|
- name: Build
|
||||||
|
run: dotnet build PkmnLib.NET.slnx -c Release --nologo --verbosity quiet -p:NoWarn=CS1591
|
||||||
|
- name: Test
|
||||||
|
run: dotnet test PkmnLib.NET.slnx -c Release --nologo --no-restore --no-build
|
Loading…
x
Reference in New Issue
Block a user