diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..a7d9843 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,35 @@ +name: Build + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + linux: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: Setup .NET Core + uses: actions/setup-dotnet@v1 + with: + dotnet-version: "8.0.x" + - name: Build with dotnet + run: dotnet build --configuration Release + - name: Test with dotnet + run: dotnet test --configuration Release + windows: + runs-on: windows-latest + steps: + - uses: actions/checkout@v1 + - name: Setup .NET Core + uses: actions/setup-dotnet@v1 + with: + dotnet-version: "8.0.x" + - name: Build with dotnet + run: dotnet build --configuration Release + - name: Test with dotnet + run: dotnet test --configuration Release