Skip to content

hardcode sln name

hardcode sln name #36

Workflow file for this run

on: [push]
env:
PROJECT_NAME: unity-code-cleanup-tests
jobs:
inspection:
runs-on: ubuntu-latest
container: unityci/editor:ubuntu-2022.3.24f1-linux-il2cpp-3
name: Inspection
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cache Library
uses: actions/cache@v3
with:
path: Library
key: Library-lint-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }}
restore-keys: Library-lint-
- name: Generate Solution
env:
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }}
run: unity-editor -batchmode -nographics -logFile /dev/stdout -projectPath . -executeMethod Packages.Rider.Editor.RiderScriptEditor.SyncSolution -username "$UNITY_EMAIL" -password "$UNITY_PASSWORD" -serial "$UNITY_SERIAL" -quit
- name: Return License
env:
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
if: always()
run: unity-editor -logFile /dev/stdout -username "$UNITY_EMAIL" -password "$UNITY_PASSWORD" -quit -returnlicense
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
- name: Restore Dependencies
run: dotnet restore $PROJECT_NAME.sln
- run: echo "$HOME/.dotnet/tools" >> $GITHUB_PATH
- run: ls
- run: pwd
- name: Inspect code
uses: muno92/resharper_inspectcode@v1
with:
solutionPath: ./unity-code-cleanup-tests.sln