Skip to content

Merge pull request #249 from stevehalliwell/simlify-loop-vars #336

Merge pull request #249 from stevehalliwell/simlify-loop-vars

Merge pull request #249 from stevehalliwell/simlify-loop-vars #336

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/setup-nuget@v1.0.5
- 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/