Skip to content

06479 - AddressBookInitializer do not validate state loaded addressbook #1362

06479 - AddressBookInitializer do not validate state loaded addressbook

06479 - AddressBookInitializer do not validate state loaded addressbook #1362

##
# Copyright (C) 2022-2023 Hedera Hashgraph, LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
##
name: "Platform: PR Checks"
on:
workflow_dispatch:
pull_request:
types:
- opened
- reopened
- synchronize
- labeled
paths:
- 'platform-sdk/**'
defaults:
run:
shell: bash
concurrency:
group: platform-sdk-pr-checks-${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build:
name: Code
uses: ./.github/workflows/platform-zxc-compile-platform-code.yaml
with:
enable-spotless-check: false
secrets:
access-token: ${{ secrets.PLATFORM_GH_ACCESS_TOKEN }}
spotless:
name: Spotless
uses: ./.github/workflows/platform-zxc-compile-platform-code.yaml
with:
custom-job-label: "Check"
enable-javadoc: false
enable-owasp-analysis: false
enable-unit-tests: false
enable-jmh-tests: false
enable-sonar-analysis: false
enable-spotless-check: true
secrets:
access-token: ${{ secrets.PLATFORM_GH_ACCESS_TOKEN }}
unit-label-check:
name: "Label Check [CI:UnitTests]"
runs-on: [self-hosted, Linux, small, scheduler, ephemeral]
if: ${{ contains(github.event.pull_request.labels.*.name, 'CI:UnitTests') || contains(github.event.pull_request.labels.*.name, 'CI:FinalChecks') }}
steps:
- name: "Check Labels"
uses: jesusvasquez333/verify-pr-label-action@v1.4.0
if: github.event_name == 'pull_request'
with:
github-token: ${{ secrets.PLATFORM_GH_ACCESS_TOKEN }}
valid-labels: "CI:UnitTests, CI:FinalChecks"
disable-reviews: true
unit-tests:
name: Unit Tests
uses: ./.github/workflows/platform-zxc-compile-platform-code.yaml
needs:
- unit-label-check
with:
custom-job-label: Standard
enable-javadoc: false
enable-owasp-analysis: false
enable-unit-tests: true
enable-sonar-analysis: true
secrets:
access-token: ${{ secrets.PLATFORM_GH_ACCESS_TOKEN }}
sonar-token: ${{ secrets.PLATFORM_SONAR_TOKEN }}
slack-api-token: ${{ secrets.PLATFORM_SLACK_API_TOKEN }}
final-label-check:
name: "Label Check [CI:FinalChecks]"
runs-on: [self-hosted, Linux, small, scheduler, ephemeral]
if: ${{ contains(github.event.pull_request.labels.*.name, 'CI:FinalChecks') }}
steps:
- name: "Check Labels"
uses: jesusvasquez333/verify-pr-label-action@v1.4.0
if: github.event_name == 'pull_request'
with:
github-token: ${{ secrets.PLATFORM_GH_ACCESS_TOKEN }}
valid-labels: "CI:FinalChecks"
disable-reviews: true
abbreviated-panel:
name: JRS Panel
uses: ./.github/workflows/zxc-jrs-regression.yaml
needs:
- final-label-check
with:
panel-config: "configs/suites/GCP-PRCheck-Abbrev-4N.json"
branch-name: ${{ github.head_ref || github.ref_name }}
slack-results-channel: "regression-test"
slack-summary-channel: "regression-test"
use-branch-for-slack-channel: false
secrets:
access-token: ${{ secrets.PLATFORM_GH_ACCESS_TOKEN }}
jrs-ssh-user-name: ${{ secrets.PLATFORM_JRS_SSH_USER_NAME }}
jrs-ssh-key-file: ${{ secrets.PLATFORM_JRS_SSH_KEY_FILE }}
gcp-project-number: ${{ secrets.PLATFORM_GCP_PROJECT_NUMBER }}
gcp-sa-key-contents: ${{ secrets.PLATFORM_GCP_KEY_FILE }}
slack-api-token: ${{ secrets.PLATFORM_SLACK_API_TOKEN }}