diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..ffd533b --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,24 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + +jobs: + build-and-test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 + + - name: Setup .NET + uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1 + with: + global-json-file: src/global.json + dotnet-quality: preview + + - name: Build + run: dotnet build src --configuration Release + + - name: Test + run: dotnet test src --configuration Release --no-build --no-restore diff --git a/src/Tests/Tests.cs b/src/Tests/Tests.cs index 9cd00ae..e648c66 100644 --- a/src/Tests/Tests.cs +++ b/src/Tests/Tests.cs @@ -226,8 +226,6 @@ await Verify(new }); } -#endif - static void PatchDependencies(string targetPath) { var depsFile = Path.Combine(targetPath, "SampleApp.deps.json"); @@ -242,6 +240,8 @@ static void PatchDependencies(string targetPath) File.WriteAllText(depsFile, text); } +#endif + static bool[] bools = {true, false}; static readonly string tempPath;