diff --git a/.github/workflows/net-preview.yml b/.github/workflows/net-preview.yml new file mode 100644 index 0000000..4689ef3 --- /dev/null +++ b/.github/workflows/net-preview.yml @@ -0,0 +1,34 @@ +on: + push: + branches: + - main + release: + types: + - published + pull_request: + +name: net-preview +env: + DOTNET_CLI_TELEMETRY_OPTOUT: true + DOTNET_NOLOGO: true + dotnet-version: 9.0.100-preview.7.24407.12 + dotnet-target: net9.0 + +jobs: + test: + runs-on: ubuntu-latest + steps: + # Setup + - uses: actions/setup-dotnet@v4 + with: + dotnet-version: ${{ env.dotnet-version }} + + - run: dotnet --info + + # Checkout + - uses: actions/checkout@v4 + with: + fetch-depth: 1 + + # Run all tests + - run: dotnet test -c Release -f ${{ env.dotnet-target }} -p:NetPreview=true