Skip to content

Commit

Permalink
ci: Pass CODECOV_TOKEN to acceptance workflow (#3299)
Browse files Browse the repository at this point in the history
* ci: Test set write-all permissions

Signed-off-by: Mihail Mihov <[email protected]>

* ci: Test how to pass the codecov token

Signed-off-by: Mihail Mihov <[email protected]>

* ci: Disable all steps that run acceptance-workflow other then the first one

Signed-off-by: Mihail Mihov <[email protected]>

* ci: test disable publish result job

Signed-off-by: Mihail Mihov <[email protected]>

* ci: Add Codecov token to every step which uses the acceptance-workflow.yml

Signed-off-by: Mihail Mihov <[email protected]>

* ci: Add -Z flag to codecov cli

Signed-off-by: Mihail Mihov <[email protected]>

* ci: Add codecov token to one more step

Signed-off-by: Mihail Mihov <[email protected]>

* ci: Remove the Z flag

Signed-off-by: Mihail Mihov <[email protected]>

---------

Signed-off-by: Mihail Mihov <[email protected]>
  • Loading branch information
mishomihov00 authored Dec 2, 2024
1 parent 1551da6 commit af2159f
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/acceptance-public.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
maxAttempts: 1
secrets:
operator_key: ${{ inputs.operator_key }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

publish_results:
name: Publish Results
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/acceptance-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ on:
operator_key:
description: 'The ED25519, ECDSA, or DER encoded private key of the operator'
required: false
CODECOV_TOKEN:
description: 'Codecov upload token'
required: true


env:
OPERATOR_ID_MAIN: ${{ inputs.operator_id }}
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/acceptance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,106 +17,141 @@ jobs:
uses: ./.github/workflows/acceptance-workflow.yml
with:
testfilter: api_batch1
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

api_batch_2:
name: API Batch 2
uses: ./.github/workflows/acceptance-workflow.yml
with:
testfilter: api_batch2
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}


api_batch_3:
name: API Batch 3
uses: ./.github/workflows/acceptance-workflow.yml
with:
testfilter: api_batch3
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

erc20:
name: ERC20
uses: ./.github/workflows/acceptance-workflow.yml
with:
testfilter: erc20
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

ratelimiter:
name: Rate Limiter
uses: ./.github/workflows/acceptance-workflow.yml
with:
testfilter: ratelimiter
test_ws_server: true
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

hbarlimiter_batch_1:
name: HBar Limiter Batch 1
uses: ./.github/workflows/acceptance-workflow.yml
with:
testfilter: hbarlimiter_batch1
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

hbarlimiter_batch_2:
name: HBar Limiter Batch 2
uses: ./.github/workflows/acceptance-workflow.yml
with:
testfilter: hbarlimiter_batch2
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

hbarlimiter_batch_3:
name: HBar Limiter Batch 3
uses: ./.github/workflows/acceptance-workflow.yml
with:
testfilter: hbarlimiter_batch3
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

tokencreate:
name: Token Create
uses: ./.github/workflows/acceptance-workflow.yml
with:
testfilter: tokencreate
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

tokenmanagement:
name: Token Management
uses: ./.github/workflows/acceptance-workflow.yml
with:
testfilter: tokenmanagement
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

htsprecompilev1:
name: Precompile
uses: ./.github/workflows/acceptance-workflow.yml
with:
testfilter: htsprecompilev1
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

precompilecalls:
name: Precompile Calls
uses: ./.github/workflows/acceptance-workflow.yml
with:
testfilter: precompile-calls
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

websocket-batch-1:
name: Websocket Batch 1
uses: ./.github/workflows/acceptance-workflow.yml
with:
testfilter: ws_batch1
test_ws_server: true
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

websocket-batch-2:
name: Websocket Batch 2
uses: ./.github/workflows/acceptance-workflow.yml
with:
testfilter: ws_batch2
test_ws_server: true
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

websocket-batch-3:
name: Websocket Batch 3
uses: ./.github/workflows/acceptance-workflow.yml
with:
testfilter: ws_batch3
test_ws_server: true
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

cacheservice:
name: Cache Service
uses: ./.github/workflows/acceptance-workflow.yml
with:
testfilter: cache-service
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

server-config:
name: Server Config
uses: ./.github/workflows/acceptance-workflow.yml
with:
testfilter: serverconfig
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

publish_results:
name: Publish Results
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/manual-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ jobs:
testfilter: api_batch1
networkTag: ${{inputs.networkNodeTag}}
mirrorTag: ${{inputs.mirrorNodeTag}}
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

api_batch_2:
name: API Batch 2
Expand All @@ -34,6 +36,8 @@ jobs:
testfilter: api_batch2
networkTag: ${{inputs.networkNodeTag}}
mirrorTag: ${{inputs.mirrorNodeTag}}
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

api_batch_3:
name: API Batch 3
Expand All @@ -42,6 +46,8 @@ jobs:
testfilter: api_batch3
networkTag: ${{inputs.networkNodeTag}}
mirrorTag: ${{inputs.mirrorNodeTag}}
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

erc20:
name: ERC20
Expand All @@ -50,6 +56,8 @@ jobs:
testfilter: erc20
networkTag: ${{inputs.networkNodeTag}}
mirrorTag: ${{inputs.mirrorNodeTag}}
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

ratelimiter:
name: Rate Limiter
Expand All @@ -59,6 +67,8 @@ jobs:
test_ws_server: true
networkTag: ${{inputs.networkNodeTag}}
mirrorTag: ${{inputs.mirrorNodeTag}}
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

hbarlimiter:
name: HBar Limiter
Expand All @@ -67,6 +77,8 @@ jobs:
testfilter: hbarlimiter
networkTag: ${{inputs.networkNodeTag}}
mirrorTag: ${{inputs.mirrorNodeTag}}
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

tokencreate:
name: Token Create
Expand All @@ -75,6 +87,8 @@ jobs:
testfilter: tokencreate
networkTag: ${{inputs.networkNodeTag}}
mirrorTag: ${{inputs.mirrorNodeTag}}
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

tokenmanagement:
name: Token Management
Expand All @@ -83,6 +97,8 @@ jobs:
testfilter: tokenmanagement
networkTag: ${{inputs.networkNodeTag}}
mirrorTag: ${{inputs.mirrorNodeTag}}
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

htsprecompilev1:
name: Precompile
Expand All @@ -91,6 +107,8 @@ jobs:
testfilter: htsprecompilev1
networkTag: ${{inputs.networkNodeTag}}
mirrorTag: ${{inputs.mirrorNodeTag}}
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

precompilecalls:
name: Precompile Calls
Expand All @@ -99,6 +117,8 @@ jobs:
testfilter: precompile-calls
networkTag: ${{inputs.networkNodeTag}}
mirrorTag: ${{inputs.mirrorNodeTag}}
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

websocket-batch-1:
name: Websocket Batch 1
Expand All @@ -108,6 +128,8 @@ jobs:
test_ws_server: true
networkTag: ${{inputs.networkNodeTag}}
mirrorTag: ${{inputs.mirrorNodeTag}}
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

websocket-batch-2:
name: Websocket Batch 2
Expand All @@ -117,6 +139,8 @@ jobs:
test_ws_server: true
networkTag: ${{inputs.networkNodeTag}}
mirrorTag: ${{inputs.mirrorNodeTag}}
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

websocket-batch-3:
name: Websocket Batch 3
Expand All @@ -126,6 +150,8 @@ jobs:
test_ws_server: true
networkTag: ${{inputs.networkNodeTag}}
mirrorTag: ${{inputs.mirrorNodeTag}}
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

cacheservice:
name: Cache Service
Expand All @@ -134,6 +160,8 @@ jobs:
testfilter: cache-service
networkTag: ${{inputs.networkNodeTag}}
mirrorTag: ${{inputs.mirrorNodeTag}}
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

server-config:
name: Server Config
Expand All @@ -142,6 +170,8 @@ jobs:
testfilter: serverconfig
networkTag: ${{inputs.networkNodeTag}}
mirrorTag: ${{inputs.mirrorNodeTag}}
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

publish_results:
name: Publish Results
Expand Down

0 comments on commit af2159f

Please sign in to comment.