Merge pull request #25629 from abpframework/auto-merge/rel-10-5/4654 #17429
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: "build and test" | |
| on: | |
| push: | |
| branches: | |
| - dev | |
| paths: | |
| - 'framework/**/*.cs' | |
| - 'framework/**/*.cshtml' | |
| - 'framework/**/*.csproj' | |
| - 'framework/**/*.razor' | |
| - 'modules/**/*.cs' | |
| - 'modules/**/*.cshtml' | |
| - 'modules/**/*.csproj' | |
| - 'modules/**/*.razor' | |
| - 'templates/**/*.cs' | |
| - 'templates/**/*.cshtml' | |
| - 'templates/**/*.csproj' | |
| - 'templates/**/*.razor' | |
| - 'Directory.Build.props' | |
| - 'Directory.Packages.props' | |
| - '.github/workflows/build-and-test.yml' | |
| pull_request: | |
| branches: | |
| - dev | |
| - 'rel-*' | |
| paths: | |
| - 'framework/**/*.cs' | |
| - 'framework/**/*.cshtml' | |
| - 'framework/**/*.csproj' | |
| - 'framework/**/*.razor' | |
| - 'modules/**/*.cs' | |
| - 'modules/**/*.cshtml' | |
| - 'modules/**/*.csproj' | |
| - 'modules/**/*.razor' | |
| - 'templates/**/*.cs' | |
| - 'templates/**/*.cshtml' | |
| - 'templates/**/*.csproj' | |
| - 'templates/**/*.razor' | |
| - 'Directory.Build.props' | |
| - 'Directory.Packages.props' | |
| - '.github/workflows/build-and-test.yml' | |
| types: | |
| - opened | |
| - synchronize | |
| - reopened | |
| - ready_for_review | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| id-token: write | |
| jobs: | |
| build-test: | |
| runs-on: ubuntu-22.04 | |
| timeout-minutes: 50 | |
| if: ${{ !github.event.pull_request.draft }} | |
| steps: | |
| - uses: jlumbroso/free-disk-space@v1.3.1 | |
| - name: Install PowerShell | |
| run: sudo apt-get install -y powershell | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 10.0.x | |
| - name: Cache NuGet packages | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.nuget/packages | |
| key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj', 'Directory.Packages.props') }} | |
| restore-keys: | | |
| ${{ runner.os }}-nuget- | |
| - name: Build All | |
| run: ./build-all.ps1 | |
| working-directory: ./build | |
| shell: pwsh | |
| - name: Test All | |
| run: ./test-all.ps1 | |
| working-directory: ./build | |
| shell: pwsh | |
| - name: Codecov | |
| if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }} | |
| uses: codecov/codecov-action@v7 | |
| with: | |
| use_oidc: true | |
| fail_ci_if_error: true |