Skip to content

Commit 868d204

Browse files
diplay env
1 parent fc407ae commit 868d204

File tree

1 file changed

+38
-18
lines changed

1 file changed

+38
-18
lines changed

.github/workflows/build.yml

Lines changed: 38 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,6 @@ jobs:
1919
uses: actions/setup-dotnet@v3
2020
with:
2121
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 ../..
3622

3723
linux-build:
3824
name: 'Linux x64'
@@ -85,22 +71,56 @@ jobs:
8571
needs: windows-build
8672
runs-on: windows-latest
8773
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"
88110
- uses: actions/checkout@v4
89111
- name: Setup .NET
90112
uses: actions/setup-dotnet@v3
91113
with:
92114
dotnet-version: '6.0.403'
93-
- name: Install DocFX
94-
run: dotnet tool update -g docfx
95115
- name: Build and create packages
96116
run: |
97117
dotnet restore
98118
dotnet build Confluent.Kafka.sln -c $env:CONFIGURATION
99119
100120
# Different packaging for tagged vs untagged builds
101121
if ($env:GITHUB_REF -match '^refs/tags/') {
102-
$suffix = ""
103-
$vsuffix = ""
122+
$suffix = "gr"
123+
$vsuffix = "--version-suffix"
104124
} else {
105125
$suffix = "ci-$env:GITHUB_RUN_ID"
106126
$vsuffix = "--version-suffix"

0 commit comments

Comments
 (0)