Skip to content
26 changes: 21 additions & 5 deletions .github/workflows/buildPR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,20 +82,37 @@ jobs:
timeout-minutes: 30
runs-on: ${{ matrix.runners }}
concurrency:
group: cli-pr-${{ github.sha }}-${{ matrix.dotnet-version }}-${{matrix.runners}}
group: cli-pr-${{ github.sha }}-${{ matrix.dotnet-version }}-${{ matrix.runners }}-${{ matrix.test-culture }}
cancel-in-progress: true
Comment on lines 84 to 86
strategy:
max-parallel: 2
matrix:
dotnet-version: ['10.0.x' ]
runners: [ windows-latest, ubuntu-latest ]
include:
- runners: windows-latest
test-culture: en-US
Comment on lines 89 to +93
dotnet-cli-ui-language: en
- runners: ubuntu-latest
test-culture: en-US
dotnet-cli-ui-language: en
lang: en_US.UTF-8
- runners: windows-latest
test-culture: pl-PL
dotnet-cli-ui-language: pl
- runners: ubuntu-latest
test-culture: pl-PL
dotnet-cli-ui-language: pl
lang: pl_PL.UTF-8
env:
BEAM_DOCKER_WINDOWS_CONTAINERS: ${{ matrix.runners == 'windows-latest' && '1' || '0' }}
DOTNET_CLI_UI_LANGUAGE: ${{ matrix.dotnet-cli-ui-language }}
Comment on lines 103 to +105
LANG: ${{ matrix.lang || '' }}
LC_ALL: ${{ matrix.lang || '' }}
steps:
- name: Check Docker
run: docker version
- name: Check concurrency
run: echo 'cli-pr-${{ github.sha }}-${{ matrix.dotnet-version }}-${{matrix.runners}}'
run: echo 'cli-pr-${{ github.sha }}-${{ matrix.dotnet-version }}-${{ matrix.runners }}-${{ matrix.test-culture }}'
- uses: actions/checkout@v4
- name: Setup .NET Core SDK ${{ matrix.dotnet-version }}
uses: actions/setup-dotnet@v4
Expand Down Expand Up @@ -131,7 +148,7 @@ jobs:
- name: Build
run: dotnet build --configuration Release --no-restore cli/tests -p:BeamOverrideVersionWithLocalDev=true
- name: Test
run: dotnet test --configuration Release --no-build cli/tests -p:BeamOverrideVersionWithLocalDev=true
run: dotnet test --configuration Release --no-build cli/tests -p:BeamOverrideVersionWithLocalDev=true -- NUnit.DefaultCulture=${{ matrix.test-culture }}
testSourceGen:
timeout-minutes: 10
runs-on: ubuntu-latest
Expand Down Expand Up @@ -443,4 +460,3 @@ jobs:
allowDirtyBuild: true
buildsPath: dist
buildMethod: BuildSampleProject.Development