mirror of
https://github.com/awatertrevi/xamarin-neo4j.git
synced 2026-09-22 09:05:29 +00:00
47 lines
1.2 KiB
YAML
47 lines
1.2 KiB
YAML
name: Integration Tests
|
|
|
|
on:
|
|
push:
|
|
branches: ["main"]
|
|
paths:
|
|
- "Xamarin.Neo4j/**"
|
|
- ".github/workflows/integration-tests.yml"
|
|
pull_request:
|
|
branches: ["main"]
|
|
paths:
|
|
- "Xamarin.Neo4j/**"
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
checks: write
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup .NET
|
|
uses: actions/setup-dotnet@v4
|
|
with:
|
|
dotnet-version: "10.0.x"
|
|
|
|
- name: Unit Tests
|
|
working-directory: Xamarin.Neo4j/Xamarin.Neo4j/Xamarin.Neo4j.Tests
|
|
run: dotnet test --verbosity normal --logger "trx;LogFileName=unit-tests.trx" --results-directory ../../../TestResults
|
|
|
|
- name: Integration Tests
|
|
working-directory: Xamarin.Neo4j/Xamarin.Neo4j/Xamarin.Neo4j.IntegrationTests
|
|
run: dotnet test --verbosity normal --logger "trx;LogFileName=integration-tests.trx" --results-directory ../../../TestResults
|
|
|
|
- name: Publish Test Results
|
|
uses: dorny/test-reporter@v1
|
|
if: always()
|
|
with:
|
|
name: Test Results
|
|
path: TestResults/*.trx
|
|
reporter: dotnet-trx
|