name: dotnet build on: push: paths-ignore: - '**.md' - 'Dockerfile' jobs: build: runs-on: windows-latest env: DOTNET_CLI_TELEMETRY_OPTOUT: 'true' NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages steps: - uses: actions/checkout@v3 with: submodules: true - name: Setup .NET SDK uses: actions/setup-dotnet@v3 with: dotnet-version: 7.0 - name: Download Dalamud run: | Invoke-WebRequest -Uri https://goatcorp.github.io/dalamud-distrib/latest.zip -OutFile latest.zip Expand-Archive -Force latest.zip "$env:AppData\XIVLauncher\addon\Hooks\dev\" - id: cache-dependencies uses: actions/cache@v3 with: path: ${{ github.workspace }}/.nuget/packages key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} restore-keys: | ${{ runner.os }}-nuget- - name: Install dependencies run: dotnet restore - name: Build run: dotnet build --configuration Release --no-restore - name: Test run: dotnet test --no-restore --verbosity normal timeout-minutes: 10