|
@@ -1,34 +1,33 @@
|
|
-name: PR Check
|
|
|
|
|
|
+name: PR
|
|
|
|
|
|
on:
|
|
on:
|
|
|
|
|
|
pull_request:
|
|
pull_request:
|
|
- branches: [ main, release/2.x, 3.x ]
|
|
|
|
|
|
+ branches: [ main, 3.x ]
|
|
|
|
|
|
env:
|
|
env:
|
|
DOTNET_NOLOGO: true
|
|
DOTNET_NOLOGO: true
|
|
DOTNET_CLI_TELEMETRY_OPTOUT: 1
|
|
DOTNET_CLI_TELEMETRY_OPTOUT: 1
|
|
|
|
|
|
|
|
+concurrency:
|
|
|
|
+ group: ${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.run_id }}
|
|
|
|
+ cancel-in-progress: true
|
|
|
|
+
|
|
jobs:
|
|
jobs:
|
|
|
|
|
|
- windows:
|
|
|
|
- runs-on: windows-latest
|
|
|
|
|
|
+ test:
|
|
|
|
|
|
- steps:
|
|
|
|
|
|
+ name: ${{ matrix.os.name }}
|
|
|
|
|
|
- - name: Setup NET
|
|
|
|
- uses: actions/setup-dotnet@v4
|
|
|
|
- with:
|
|
|
|
- dotnet-version: 9.0
|
|
|
|
|
|
+ strategy:
|
|
|
|
+ matrix:
|
|
|
|
+ os:
|
|
|
|
+ - { name: 'linux', image: 'ubuntu-latest' }
|
|
|
|
+ - { name: 'linux - ARM', image: 'ubuntu-24.04-arm' }
|
|
|
|
+ - { name: 'windows', image: 'windows-latest' }
|
|
|
|
+ - { name: 'macos', image: 'macos-latest' }
|
|
|
|
|
|
- - name: Checkout source code
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
-
|
|
|
|
- - name: Test
|
|
|
|
- run: dotnet test --configuration Release --logger GitHubActions
|
|
|
|
-
|
|
|
|
- linux:
|
|
|
|
- runs-on: ubuntu-latest
|
|
|
|
|
|
+ runs-on: ${{ matrix.os.image }}
|
|
|
|
|
|
steps:
|
|
steps:
|
|
|
|
|
|
@@ -43,18 +42,3 @@ jobs:
|
|
- name: Test
|
|
- name: Test
|
|
run: dotnet test --configuration Release --logger GitHubActions
|
|
run: dotnet test --configuration Release --logger GitHubActions
|
|
|
|
|
|
- macos:
|
|
|
|
- runs-on: macos-latest
|
|
|
|
-
|
|
|
|
- steps:
|
|
|
|
-
|
|
|
|
- - name: Setup NET
|
|
|
|
- uses: actions/setup-dotnet@v4
|
|
|
|
- with:
|
|
|
|
- dotnet-version: 9.0
|
|
|
|
-
|
|
|
|
- - name: Checkout source code
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
-
|
|
|
|
- - name: Test
|
|
|
|
- run: dotnet test --configuration Release --logger GitHubActions
|
|
|