Skip to content

Commit

Permalink
ci: Updating workflows/actions to be compatible to and updating to th…
Browse files Browse the repository at this point in the history
…e step-security maintained version. (#3108)

* Updating workflows/actions to be compatible to and updating to the step-security maintained version.

Signed-off-by: Vasil Boyadzhiev <[email protected]>

Resolving conflicts and rebasing.

* Adding github Token to the action.

Signed-off-by: Vasil Boyadzhiev <[email protected]>

* Adding permissions for checks to: write

Signed-off-by: Vasil Boyadzhiev <[email protected]>

Resolving conflicts and rebasing.

* Applying suggestions from code review.

Signed-off-by: Vasil Boyadzhiev <[email protected]>

* Updating workflows/actions to be compatible to and updating to the step-security maintained version.

Signed-off-by: Vasil Boyadzhiev <[email protected]>

Resolving conflicts and rebasing.

* Adding github Token to the action.

Signed-off-by: Vasil Boyadzhiev <[email protected]>

* Adding permissions for checks to: write

Signed-off-by: Vasil Boyadzhiev <[email protected]>

Resolving conflicts and rebasing.

* Applying suggestions from code review.

Signed-off-by: Vasil Boyadzhiev <[email protected]>

* ci: Updating without merge conflicts.

Signed-off-by: Vasil Boyadzhiev <[email protected]>

* ci: Fixing changes and merge conflicts.

Signed-off-by: Vasil Boyadzhiev <[email protected]>

* ci: Resolving conflicts.

Signed-off-by: Vasil Boyadzhiev <[email protected]>

---------

Signed-off-by: Vasil Boyadzhiev <[email protected]>
  • Loading branch information
san-est authored Oct 23, 2024
1 parent 4ab3666 commit 1ad7040
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 27 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/acceptance-public.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@ jobs:
merge-multiple: true

- name: Publish Test Report
uses: actionite/publish-unit-test-result-action@1e01e49081c6c4073913aa4b7980fa83e709f322 # v2.3.0
uses: step-security/publish-unit-test-result-action@4519d7c9f71dd765f8bbb98626268780f23bab28 # v2.17.0
with:
check_name: Test Results
json_thousands_separator: ','
junit_files: 'test-*.xml'
files: 'test-*.xml'
github_token: ${{ secrets.GITHUB_TOKEN }}
14 changes: 11 additions & 3 deletions .github/workflows/acceptance-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
permissions:
contents: write
actions: read
checks: write
# issues: read
env:
OPERATOR_ID_MAIN: ${{ inputs.operator_id }}
Expand All @@ -62,6 +63,12 @@ jobs:
with:
node-version: 20

- name: Install make
run: sudo apt-get update; sudo apt-get install build-essential -y

- name: Checkout repo
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6

- name: Install packages
run: npm ci

Expand Down Expand Up @@ -119,10 +126,11 @@ jobs:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

- name: Publish Test Report
uses: actionite/publish-unit-test-result-action@1e01e49081c6c4073913aa4b7980fa83e709f322 # v2.3.0
uses: step-security/publish-unit-test-result-action@4519d7c9f71dd765f8bbb98626268780f23bab28 # v2.17.0
if: ${{ !cancelled() }}
with:
check_run_disabled: true
check_name: '' # Set to empty to disable check run
comment_mode: off
json_thousands_separator: ','
junit_files: 'test-*.xml'
files: 'test-*.xml'
github_token: ${{ secrets.GITHUB_TOKEN }}
9 changes: 5 additions & 4 deletions .github/workflows/acceptance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,10 @@ jobs:
merge-multiple: true

- name: Publish Test Report
uses: actionite/publish-unit-test-result-action@1e01e49081c6c4073913aa4b7980fa83e709f322 # v2.3.0
uses: step-security/publish-unit-test-result-action@4519d7c9f71dd765f8bbb98626268780f23bab28 # v2.17.0
with:
check_name: Acceptance Tests
check_run_disabled: true
# check_name: Acceptance Tests
check_name: '' # Set to empty to disable check run
json_thousands_separator: ','
junit_files: 'test-*.xml'
files: 'test-*.xml'
github_token: ${{ secrets.GITHUB_TOKEN }}
23 changes: 12 additions & 11 deletions .github/workflows/manual-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ jobs:
testfilter: api_batch3
networkTag: ${{inputs.networkNodeTag}}
mirrorTag: ${{inputs.mirrorNodeTag}}

erc20:
name: ERC20
uses: ./.github/workflows/acceptance-workflow.yml
with:
testfilter: erc20
networkTag: ${{inputs.networkNodeTag}}
mirrorTag: ${{inputs.mirrorNodeTag}}

ratelimiter:
name: Rate Limiter
uses: ./.github/workflows/acceptance-workflow.yml
Expand All @@ -67,31 +67,31 @@ jobs:
testfilter: hbarlimiter
networkTag: ${{inputs.networkNodeTag}}
mirrorTag: ${{inputs.mirrorNodeTag}}

tokencreate:
name: Token Create
uses: ./.github/workflows/acceptance-workflow.yml
with:
testfilter: tokencreate
networkTag: ${{inputs.networkNodeTag}}
mirrorTag: ${{inputs.mirrorNodeTag}}

tokenmanagement:
name: Token Management
uses: ./.github/workflows/acceptance-workflow.yml
with:
testfilter: tokenmanagement
networkTag: ${{inputs.networkNodeTag}}
mirrorTag: ${{inputs.mirrorNodeTag}}

htsprecompilev1:
name: Precompile
uses: ./.github/workflows/acceptance-workflow.yml
with:
testfilter: htsprecompilev1
networkTag: ${{inputs.networkNodeTag}}
mirrorTag: ${{inputs.mirrorNodeTag}}

precompilecalls:
name: Precompile Calls
uses: ./.github/workflows/acceptance-workflow.yml
Expand Down Expand Up @@ -126,7 +126,7 @@ jobs:
test_ws_server: true
networkTag: ${{inputs.networkNodeTag}}
mirrorTag: ${{inputs.mirrorNodeTag}}

cacheservice:
name: Cache Service
uses: ./.github/workflows/acceptance-workflow.yml
Expand Down Expand Up @@ -174,9 +174,10 @@ jobs:
merge-multiple: true

- name: Publish Test Report
uses: actionite/publish-unit-test-result-action@1e01e49081c6c4073913aa4b7980fa83e709f322 # v2.3.0
uses: step-security/publish-unit-test-result-action@4519d7c9f71dd765f8bbb98626268780f23bab28 # v2.17.0
with:
check_name: Acceptance Tests
check_run_disabled: true
# check_name: Acceptance Tests
check_name: '' # Set to empty to disable check run
json_thousands_separator: ','
junit_files: 'test-*.xml'
files: 'test-*.xml'
github_token: ${{ secrets.GITHUB_TOKEN }}
7 changes: 4 additions & 3 deletions .github/workflows/release-acceptance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,11 @@ jobs:
path: test-*.xml

- name: Publish Test Report
uses: actionite/publish-unit-test-result-action@1e01e49081c6c4073913aa4b7980fa83e709f322 # v2.3.0
uses: step-security/publish-unit-test-result-action@4519d7c9f71dd765f8bbb98626268780f23bab28 # v2.17.0
if: ${{ !cancelled() }}
with:
check_run_disabled: true
check_name: '' # Set to empty to disable check run
comment_mode: off
json_thousands_separator: ','
junit_files: 'test-*.xml'
files: 'test-*.xml'
github_token: ${{ secrets.GITHUB_TOKEN }}
9 changes: 5 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,10 @@ jobs:

- name: Publish Test Report
if: ${{ github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name && github.actor != 'dependabot[bot]' && github.actor != 'swirlds-automation' && !cancelled() && !failure() }}
uses: actionite/publish-unit-test-result-action@1e01e49081c6c4073913aa4b7980fa83e709f322 # v2.3.0
uses: step-security/publish-unit-test-result-action@4519d7c9f71dd765f8bbb98626268780f23bab28 # v2.17.0
with:
check_name: Tests
check_run_disabled: true
# check_name: Tests
check_name: '' # Set to empty to disable check run
json_thousands_separator: ','
junit_files: 'test-*.xml'
files: 'test-*.xml'
github_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 1ad7040

Please sign in to comment.