Fix discarded save-attempt results across remaining serializers (v18 port) #731
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: PR Project Build and Test | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| # NOTE: uSync releases from "v{major}/main" - a branch per Umbraco major. Plain "main" | |
| # is kept in the filter so a re-created main, or a branch that hasn't been moved over | |
| # yet, still builds. | |
| on: | |
| pull_request: | |
| branches: [ "main", "*/main" ] | |
| paths-ignore: | |
| - "**.md" | |
| - "docs/**" | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| config: Release | |
| out_folder: ./build-out/ | |
| solution_name: ./uSync.slnx | |
| test_project: ./uSync.Tests/uSync.Tests.csproj | |
| schema_gen_project: ./uSync.SchemaGenerator/uSync.SchemaGenerator.csproj | |
| jobs: | |
| build-project: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-dotnet@v6 | |
| with: | |
| global-json-file: global.json | |
| cache: true | |
| cache-dependency-path: "**/packages.lock.json" | |
| # the client project's build runs `npm run build` via an MSBuild target, | |
| # so node needs to be available before the dotnet build step below. | |
| - uses: actions/setup-node@v7 | |
| with: | |
| node-version: "lts/*" | |
| # -p:Configuration matters here: uSync.Extend is excluded from the Debug solution | |
| # configuration (<Build Solution="Debug|*" Project="false" /> in uSync.slnx), so a | |
| # restore with no configuration defaults to Debug and silently skips it, leaving no | |
| # project.assets.json for the Release build below to pick up. | |
| - name: restore | |
| run: dotnet restore ${{ env.solution_name }} --locked-mode -p:Configuration=${{ env.config }} | |
| - name: build | |
| run: dotnet build ${{ env.solution_name }} -c ${{ env.config }} --no-restore -p:ContinuousIntegrationBuild=true | |
| - name: test | |
| run: dotnet test ${{ env.test_project }} -c ${{ env.config }} | |
| - name: Generate AppSettings Schema | |
| run: dotnet run -c ${{ env.config }} --project ${{ env.schema_gen_project }} |