|
19 | 19 | uses: actions/setup-dotnet@v3
|
20 | 20 | with:
|
21 | 21 | dotnet-version: '6.0.x'
|
22 |
| - |
23 |
| - - name: Classic Protocol Tests |
24 |
| - run: | |
25 |
| - cd test/docker && docker-compose up -d && sleep 30 && cd ../.. |
26 |
| - dotnet restore |
27 |
| - cd test/Confluent.Kafka.IntegrationTests && dotnet test -l "console;verbosity=normal" && cd ../.. |
28 |
| - |
29 |
| - - name: Consumer Protocol Tests |
30 |
| - run: | |
31 |
| - cd test/docker && docker-compose -f docker-compose-kraft.yaml up -d && cd ../.. |
32 |
| - sleep 300 |
33 |
| - export TEST_CONSUMER_GROUP_PROTOCOL=consumer |
34 |
| - dotnet restore |
35 |
| - cd test/Confluent.Kafka.IntegrationTests && dotnet test -l "console;verbosity=normal" && cd ../.. |
36 | 22 |
|
37 | 23 | linux-build:
|
38 | 24 | name: 'Linux x64'
|
@@ -85,22 +71,56 @@ jobs:
|
85 | 71 | needs: windows-build
|
86 | 72 | runs-on: windows-latest
|
87 | 73 | steps:
|
| 74 | + - name: Dump GitHub context |
| 75 | + env: |
| 76 | + GITHUB_CONTEXT: ${{ toJson(github) }} |
| 77 | + run: echo "$GITHUB_CONTEXT" |
| 78 | + - name: Dump job context |
| 79 | + env: |
| 80 | + JOB_CONTEXT: ${{ toJson(job) }} |
| 81 | + run: echo "$JOB_CONTEXT" |
| 82 | + - name: Dump steps context |
| 83 | + env: |
| 84 | + STEPS_CONTEXT: ${{ toJson(steps) }} |
| 85 | + run: echo "$STEPS_CONTEXT" |
| 86 | + - name: Dump runner context |
| 87 | + env: |
| 88 | + RUNNER_CONTEXT: ${{ toJson(runner) }} |
| 89 | + run: echo "$RUNNER_CONTEXT" |
| 90 | + - name: Dump strategy context |
| 91 | + env: |
| 92 | + STRATEGY_CONTEXT: ${{ toJson(strategy) }} |
| 93 | + run: echo "$STRATEGY_CONTEXT" |
| 94 | + - name: Dump matrix context |
| 95 | + env: |
| 96 | + MATRIX_CONTEXT: ${{ toJson(matrix) }} |
| 97 | + run: echo "$MATRIX_CONTEXT" |
| 98 | + |
| 99 | + - name: Environment |
| 100 | + run: | |
| 101 | + Get-ChildItem env: |
| 102 | + |
| 103 | + - name: Show default environment variables |
| 104 | + run: | |
| 105 | + echo "The job_id is: $GITHUB_JOB" # reference the default environment variables |
| 106 | + echo "The id of this action is: $GITHUB_ACTION" # reference the default environment variables |
| 107 | + echo "The run id is: $GITHUB_RUN_ID" |
| 108 | + echo "The GitHub Actor's username is: $GITHUB_ACTOR" |
| 109 | + echo "GitHub SHA: $GITHUB_SHA" |
88 | 110 | - uses: actions/checkout@v4
|
89 | 111 | - name: Setup .NET
|
90 | 112 | uses: actions/setup-dotnet@v3
|
91 | 113 | with:
|
92 | 114 | dotnet-version: '6.0.403'
|
93 |
| - - name: Install DocFX |
94 |
| - run: dotnet tool update -g docfx |
95 | 115 | - name: Build and create packages
|
96 | 116 | run: |
|
97 | 117 | dotnet restore
|
98 | 118 | dotnet build Confluent.Kafka.sln -c $env:CONFIGURATION
|
99 | 119 |
|
100 | 120 | # Different packaging for tagged vs untagged builds
|
101 | 121 | if ($env:GITHUB_REF -match '^refs/tags/') {
|
102 |
| - $suffix = "" |
103 |
| - $vsuffix = "" |
| 122 | + $suffix = "gr" |
| 123 | + $vsuffix = "--version-suffix" |
104 | 124 | } else {
|
105 | 125 | $suffix = "ci-$env:GITHUB_RUN_ID"
|
106 | 126 | $vsuffix = "--version-suffix"
|
|
0 commit comments