diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml new file mode 100644 index 0000000..0ebe969 --- /dev/null +++ b/.github/workflows/CI.yml @@ -0,0 +1,74 @@ +name: CI + +on: + + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + + ununtu: + runs-on: ubuntu-latest + env: + DOTNET_NOLOGO: true + steps: + - uses: actions/checkout@v3 + - name: Setup .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: 8.0.x + + - name: Restore + run: dotnet restore Figgle.sln + + - name: Build solution (Release) + run: dotnet build Figgle.sln --configuration Release + - name: Build solution (Debug) + run: dotnet build Figgle.sln --configuration Debug + + - name: Test Figgle.Tests (Release) + run: dotnet test --verbosity normal --configuration Release --no-build --framework net8.0 Figgle.Tests/Figgle.Tests.csproj + - name: Test Figgle.Tests (Debug) + run: dotnet test --verbosity normal --configuration Debug --no-build --framework net8.0 Figgle.Tests/Figgle.Tests.csproj + + - name: Test Figgle.Generator.Tests (Release) + run: dotnet test --verbosity normal --configuration Release --no-build --framework net8.0 Figgle.Generator.Tests/Figgle.Generator.Tests.csproj + - name: Test Figgle.Generator.Tests (Debug) + run: dotnet test --verbosity normal --configuration Debug --no-build --framework net8.0 Figgle.Generator.Tests/Figgle.Generator.Tests.csproj + +# - name: Publish NativeAOT +# run: dotnet publish --verbosity normal --configuration Release --framework net8.0 Figgle/Figgle.csproj + + windows: + runs-on: windows-latest + env: + DOTNET_NOLOGO: true + steps: + - uses: actions/checkout@v3 + - name: Setup .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: 8.0.x + + - name: Restore + run: dotnet restore Figgle.sln + + - name: Build solution (Release) + run: dotnet build Figgle.sln --configuration Release + - name: Build solution (Debug) + run: dotnet build Figgle.sln --configuration Debug + + - name: Test Figgle.Tests (Release) + run: dotnet test --verbosity normal --configuration Release --no-build --framework net8.0 Figgle.Tests/Figgle.Tests.csproj + - name: Test Figgle.Tests (Debug) + run: dotnet test --verbosity normal --configuration Debug --no-build --framework net8.0 Figgle.Tests/Figgle.Tests.csproj + + - name: Test Figgle.Generator.Tests (Release) + run: dotnet test --verbosity normal --configuration Release --no-build --framework net8.0 Figgle.Generator.Tests/Figgle.Generator.Tests.csproj + - name: Test Figgle.Generator.Tests (Debug) + run: dotnet test --verbosity normal --configuration Debug --no-build --framework net8.0 Figgle.Generator.Tests/Figgle.Generator.Tests.csproj + +# - name: Publish NativeAOT +# run: dotnet publish --verbosity normal --configuration Release --framework net8.0 Figgle/Figgle.csproj diff --git a/Figgle.sln b/Figgle.sln index 96c36fa..193282b 100644 --- a/Figgle.sln +++ b/Figgle.sln @@ -7,7 +7,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution ProjectSection(SolutionItems) = preProject .editorconfig = .editorconfig .gitignore = .gitignore - appveyor.yml = appveyor.yml Directory.Build.props = Directory.Build.props spec\figfont.html = spec\figfont.html spec\figfont.txt = spec\figfont.txt @@ -296,6 +295,11 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Figgle.Generator.Tests", "F EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Figgle.Generator.AcceptanceTests", "Figgle.Generator.AcceptanceTests\Figgle.Generator.AcceptanceTests.csproj", "{E9177B5C-626B-44E6-87B4-2D712FB52DC9}" EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".github", ".github", "{02EA681E-C7D8-13C7-8484-4AC65E1B71E8}" + ProjectSection(SolutionItems) = preProject + .github\workflows\CI.yml = .github\workflows\CI.yml + EndProjectSection +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -384,6 +388,7 @@ Global EndGlobalSection GlobalSection(NestedProjects) = preSolution {39B8EEFC-2BF9-4E33-B299-0BF4016AC5D7} = {4A36A179-AB9F-4D63-8409-A7400F65C139} + {02EA681E-C7D8-13C7-8484-4AC65E1B71E8} = {4A36A179-AB9F-4D63-8409-A7400F65C139} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {69F27669-F6DA-410D-8F8B-9E6877CC73F4} diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index 3b53b49..0000000 --- a/appveyor.yml +++ /dev/null @@ -1,21 +0,0 @@ -version: 0.5.{build} -skip_tags: true -image: Visual Studio 2022 -configuration: -- Release -- Debug -before_build: - - appveyor-retry nuget restore -build: - parallel: true - verbosity: minimal -test: - assemblies: - only: - - Figgle.Tests.dll - - Figgle.Generator.Tests.dll - - Figgle.Generator.AcceptanceTests.dll -test_script: - - dotnet test .\Figgle.Tests\Figgle.Tests.csproj --no-build - - dotnet test .\Figgle.Generator.Tests\Figgle.Generator.Tests.csproj --no-build - - dotnet test .\Figgle.Generator.AcceptanceTests\Figgle.Generator.AcceptanceTests.csproj --no-build