name: "autobuild-action"
description: "Tests that the C# autobuild action works"
operatingSystems: ["ubuntu", "macos", "windows"]
versions: ["linked"]
installDotNet: true
steps:
  - uses: ./../action/init
    with:
      languages: csharp
      tools: ${{ steps.prepare-test.outputs.tools-url }}
  - uses: ./../action/autobuild
    env:
      # Explicitly disable the CLR tracer.
      COR_ENABLE_PROFILING: ""
      COR_PROFILER: ""
      COR_PROFILER_PATH_64: ""
      CORECLR_ENABLE_PROFILING: ""
      CORECLR_PROFILER: ""
      CORECLR_PROFILER_PATH_64: ""
  - uses: ./../action/analyze
  - name: Check database
    run: |
      cd "$RUNNER_TEMP/codeql_databases"
      if [[ ! -d csharp ]]; then
        echo "Did not find a C# database"
        exit 1
      fi
