chore(release): bump version to 1.0.0-beta #8
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
| # Builds the application and runs the unit test suite. | |
| # | |
| # The tests only build under the "Release Tests" solution configuration. That | |
| # configuration defines MAKE_TESTS, which stubs out the real keyboard and mouse | |
| # injection so a test run cannot type into the desktop of whoever is running | |
| # it. Under the plain Release configuration the test project is deliberately | |
| # left out of the build, so a bare "dotnet test" reports a missing test | |
| # assembly rather than running anything. | |
| name: Build and test | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| env: | |
| Solution_Name: DS4MapperTest.sln | |
| Test_Configuration: Release Tests | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 10.0.x | |
| # Restored for the configuration the build asks for. A plain restore of | |
| # the solution resolves the default configuration, which leaves the test | |
| # project out, and the build then stops on a missing assets file for it. | |
| - name: Restore | |
| run: dotnet restore ${{ env.Solution_Name }} -p:Configuration="${{ env.Test_Configuration }}" | |
| - name: Build | |
| run: dotnet build ${{ env.Solution_Name }} -c "${{ env.Test_Configuration }}" --no-restore | |
| - name: Test | |
| run: dotnet test ${{ env.Solution_Name }} -c "${{ env.Test_Configuration }}" --no-build |