Skip to content

Merge pull request #258 from stevehalliwell/optimiser-comm #344

Merge pull request #258 from stevehalliwell/optimiser-comm

Merge pull request #258 from stevehalliwell/optimiser-comm #344

Workflow file for this run

name: Tests
on:
pull_request:
branches: [ main, develop ]
types: [ opened, synchronize ]
push:
branches: [ main, develop ]
jobs:
lox-test:
name: checkout and run c# tests
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
lfs: true
- name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Setup NuGet
uses: NuGet/[email protected]
- run: dotnet test ulox/ --logger "trx;LogFileName=TestResults.trx" /p:CollectCoverage=true /p:CoverletOutputFormat=lcov
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ulox/ulox.core.tests/coverage.info
- name: Test Report
uses: dorny/test-reporter@v1
if: success() || failure()
with:
name: ulox.core Tests
path: ulox/ulox.core.tests/TestResults/TestResults.trx
reporter: dotnet-trx
unity-test:
name: Checkout and Run Unity Tests
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
lfs: true
- uses: actions/cache@v2
with:
path: ulox-example/Library
key: ulox-example/Library
- name: Run Unity tests
uses: game-ci/unity-test-runner@v2
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
projectPath: ulox-example/