Skip to content

chore(deps-dev): bump eslint-plugin-n from 17.21.0 to 17.21.3 (#2373) #1325

chore(deps-dev): bump eslint-plugin-n from 17.21.0 to 17.21.3 (#2373)

chore(deps-dev): bump eslint-plugin-n from 17.21.0 to 17.21.3 (#2373) #1325

##
# 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: "Build Application"
on:
workflow_dispatch:
inputs:
enable-unit-tests:
description: "Unit Testing Enabled"
type: boolean
required: false
default: true
enable-e2e-tests:
description: "E2E Testing Enabled"
type: boolean
required: false
default: false
enable-snyk-scan:
description: "Snyk Scan Enabled"
type: boolean
required: false
default: false
push:
branches:
- main
- 'release/*'
defaults:
run:
shell: bash
jobs:
generate_matrix:
runs-on: hiero-solo-linux-medium
outputs:
matrix: ${{ steps.set_matrix.outputs.matrix }}
steps:
- name: Harden Runner
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
with:
egress-policy: audit
- name: Checkout Code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Read JSON and Set Matrix Output
id: set_matrix
run: |
# Install jq (a lightweight and flexible command-line JSON processor)
sudo apt-get update && sudo apt-get install -y jq
# Read the JSON file
JSON_CONTENT=$(cat .github/workflows/support/e2e-test-matrix.json | jq -c .)
echo "JSON_CONTENT: $JSON_CONTENT"
# Set the output variable 'matrix' with the JSON content
echo "matrix=$JSON_CONTENT" >> $GITHUB_OUTPUT
code-style:
name: Code Style
uses: ./.github/workflows/zxc-code-style.yaml
with:
custom-job-label: Standard
unit-tests:
name: Unit Tests
uses: ./.github/workflows/zxc-unit-test.yaml
if: ${{ github.event_name == 'push' || github.event.inputs.enable-unit-tests == 'true' }}
needs:
- generate_matrix
- code-style
with:
custom-job-label: Standard
e2e-tests:
name: E2E Tests (${{ matrix.e2e-test-type.name }})
if: ${{ github.event_name == 'push' || github.event.inputs.enable-e2e-tests == 'true' }}
uses: ./.github/workflows/zxc-e2e-test.yaml
needs:
- code-style
- generate_matrix
strategy:
fail-fast: false
matrix:
e2e-test-type: ${{ fromJSON(needs.generate_matrix.outputs.matrix) }}
max-parallel: 3
with:
custom-job-label: ${{ matrix.e2e-test-type.name }}
test-script: ${{ matrix.e2e-test-type.test-script }}
coverage-subdirectory: ${{ matrix.e2e-test-type.coverage-subdirectory }}
coverage-report-name: ${{ matrix.e2e-test-type.coverage-report-name }}
local-java-build: ${{ matrix.e2e-test-type.local-java-build }}
cluster-name: ${{ matrix.e2e-test-type.coverage-subdirectory }}-${{ github.run_id }}-${{ github.run_attempt }}
analyze:
name: Analyze
uses: ./.github/workflows/zxc-code-analysis.yaml
needs:
- unit-tests
- e2e-tests
if: ${{ (github.event_name == 'push' || github.event.inputs.enable-unit-tests == 'true' || github.event.inputs.enable-e2e-tests == 'true') && !failure() && !cancelled() }}
with:
custom-job-label: Source Code
#enable-snyk-scan: ${{ github.event_name == 'push' || github.event.inputs.enable-snyk-scan == 'true' }}
enable-codecov-analysis: true
enable-codacy-coverage: true
enable-e2e-coverage-report: ${{ github.event_name == 'push' || github.event.inputs.enable-e2e-tests == 'true' }}
secrets:
snyk-token: ${{ secrets.SNYK_TOKEN }}
codecov-token: ${{ secrets.CODECOV_TOKEN }}
codacy-project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}