Rewrite logic of getting overlay placement container #47
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Format check on pull request | |
| on: pull_request | |
| jobs: | |
| dotnet-format: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v4 | |
| - name: Install .NET 8.0.x | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: "8.0.x" | |
| - name: Restore Tools | |
| run: dotnet tool restore | |
| - name: Restore Packages | |
| run: dotnet restore osu.Game.Rulesets.Karaoke.sln | |
| - name: Restore inspectcode cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: ${{ github.workspace }}/inspectcode | |
| key: inspectcode-${{ hashFiles('.config/dotnet-tools.json', '.github/workflows/ci.yml', 'osu*.sln', '.editorconfig', '.globalconfig', 'CodeAnalysis/*', '**/*.csproj', '**/*.props') }} | |
| - name: Dotnet code style | |
| # The EnforceCodeStyleInBuild might cause false positive errors, disabling. | |
| # run: dotnet build -c Debug -warnaserror osu.Game.Rulesets.Karaoke.sln -p:EnforceCodeStyleInBuild=true | |
| run: dotnet build -c Debug -warnaserror osu.Game.Rulesets.Karaoke.sln | |
| - name: CodeFileSanity | |
| run: | | |
| exit_code=0 | |
| while read -r line; do | |
| if [[ ! -z "$line" ]]; then | |
| echo "::error::$line" | |
| exit_code=1 | |
| fi | |
| done <<< $(dotnet codefilesanity) | |
| exit $exit_code | |
| - name: InspectCode | |
| # Still use XML output since vika's poor support for new formats | |
| run: dotnet jb inspectcode $(pwd)/osu.Game.Rulesets.Karaoke.sln --no-build -f="xml" --output="inspectcodereport.xml" --caches-home="inspectcode" --verbosity=WARN | |
| - name: NVika | |
| run: dotnet nvika parsereport "${{github.workspace}}/inspectcodereport.xml" --treatwarningsaserrors |