mirror of
https://github.com/2dust/v2rayN.git
synced 2026-08-19 21:52:04 +03:00
42 lines
936 B
YAML
42 lines
936 B
YAML
name: Code Test
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
paths:
|
|
- 'v2rayN/ServiceLib/Services/CoreConfig/**'
|
|
- 'v2rayN/ServiceLib/Handler/Fmt/**'
|
|
- '.github/workflows/test.yml'
|
|
|
|
permissions:
|
|
checks: write
|
|
pull-requests: write
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v7
|
|
with:
|
|
submodules: 'recursive'
|
|
fetch-depth: '0'
|
|
|
|
- name: Setup .NET
|
|
uses: actions/setup-dotnet@v6
|
|
with:
|
|
dotnet-version: '10.x'
|
|
dotnet-quality: 'ga'
|
|
|
|
- name: Test Code
|
|
working-directory: ./v2rayN
|
|
run: dotnet test ./ServiceLib.Tests -c Release --no-build --results-directory ./TestResults -- --report-trx
|
|
|
|
- name: Comment PR with results
|
|
if: always()
|
|
uses: EnricoMi/publish-unit-test-result-action@v2
|
|
with:
|
|
files: ./v2rayN/TestResults/*.trx
|
|
comment_mode: failures
|