Skip to content

Commit

Permalink
run autogen tool
Browse files Browse the repository at this point in the history
Signed-off-by: Jeromy Cannon <jeromy@swirldslabs.com>
  • Loading branch information
jeromy-cannon committed Sep 11, 2024
1 parent 1880bbb commit 4f80c33
Show file tree
Hide file tree
Showing 7 changed files with 67 additions and 96 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/flow-build-application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
with:
custom-job-label: Standard

e2e-tests:
e2e-standard-tests:
name: E2E Tests
if: ${{ github.event_name == 'push' || github.event.inputs.enable-e2e-tests == 'true' }}
uses: ./.github/workflows/zxc-e2e-test.yaml
Expand All @@ -73,9 +73,9 @@ jobs:
- code-style
with:
custom-job-label: Standard
npm-test-script: test-${{ needs.env-vars.outputs.e2e-test-subdir }}
coverage-subdirectory: ${{ needs.env-vars.outputs.e2e-test-subdir }}
coverage-report-name: ${{ needs.env-vars.outputs.e2e-coverage-report }}
npm-test-script: test-${{ needs.env-vars.outputs.e2e-standard-test-subdir }}
coverage-subdirectory: ${{ needs.env-vars.outputs.e2e-standard-test-subdir }}
coverage-report-name: ${{ needs.env-vars.outputs.e2e-standard-coverage-report }}

e2e-mirror-node-tests:
name: E2E Tests
Expand Down Expand Up @@ -118,6 +118,7 @@ jobs:

e2e-node-local-build-tests:
name: E2E Tests
if: ${{ github.event_name == 'push' || github.event.inputs.enable-e2e-tests == 'true' }}
uses: ./.github/workflows/zxc-e2e-test.yaml
needs:
- env-vars
Expand All @@ -130,6 +131,7 @@ jobs:

e2e-node-add-tests:
name: E2E Tests
if: ${{ github.event_name == 'push' || github.event.inputs.enable-e2e-tests == 'true' }}
uses: ./.github/workflows/zxc-e2e-test.yaml
needs:
- env-vars
Expand All @@ -142,6 +144,7 @@ jobs:

e2e-node-update-tests:
name: E2E Tests
if: ${{ github.event_name == 'push' || github.event.inputs.enable-e2e-tests == 'true' }}
uses: ./.github/workflows/zxc-e2e-test.yaml
needs:
- env-vars
Expand All @@ -154,6 +157,7 @@ jobs:

e2e-node-delete-tests:
name: E2E Tests
if: ${{ github.event_name == 'push' || github.event.inputs.enable-e2e-tests == 'true' }}
uses: ./.github/workflows/zxc-e2e-test.yaml
needs:
- env-vars
Expand Down Expand Up @@ -183,7 +187,7 @@ jobs:
needs:
- env-vars
- unit-tests
- e2e-tests
- e2e-standard-tests
- e2e-mirror-node-tests
- e2e-node-pem-stop-tests
- e2e-node-pem-kill-tests
Expand All @@ -199,7 +203,7 @@ jobs:
enable-codecov-analysis: true
enable-codacy-coverage: true
enable-e2e-coverage-report: ${{ github.event_name == 'push' || github.event.inputs.enable-e2e-tests == 'true' }}
e2e-test-subdir: ${{ needs.env-vars.outputs.e2e-test-subdir }}
e2e-standard-test-subdir: ${{ needs.env-vars.outputs.e2e-standard-test-subdir }}
e2e-mirror-node-test-subdir: ${{ needs.env-vars.outputs.e2e-mirror-node-test-subdir }}
e2e-node-pem-stop-test-subdir: ${{ needs.env-vars.outputs.e2e-node-pem-stop-test-subdir }}
e2e-node-pem-kill-test-subdir: ${{ needs.env-vars.outputs.e2e-node-pem-kill-test-subdir }}
Expand All @@ -208,7 +212,7 @@ jobs:
e2e-node-update-test-subdir: ${{ needs.env-vars.outputs.e2e-node-update-test-subdir }}
e2e-node-delete-test-subdir: ${{ needs.env-vars.outputs.e2e-node-delete-test-subdir }}
e2e-relay-test-subdir: ${{ needs.env-vars.outputs.e2e-relay-test-subdir }}
e2e-coverage-report: ${{ needs.env-vars.outputs.e2e-coverage-report }}
e2e-standard-coverage-report: ${{ needs.env-vars.outputs.e2e-standard-coverage-report }}
e2e-mirror-node-coverage-report: ${{ needs.env-vars.outputs.e2e-mirror-node-coverage-report }}
e2e-node-pem-stop-coverage-report: ${{ needs.env-vars.outputs.e2e-node-pem-stop-coverage-report }}
e2e-node-pem-kill-coverage-report: ${{ needs.env-vars.outputs.e2e-node-pem-kill-coverage-report }}
Expand Down
67 changes: 17 additions & 50 deletions .github/workflows/flow-pull-request-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,18 @@ jobs:
with:
custom-job-label: Standard

e2e-tests:
e2e-standard-tests:
name: E2E Tests
if: ${{ !cancelled() && always() }}
uses: ./.github/workflows/zxc-e2e-test.yaml
needs:
- env-vars
- code-style
with:
custom-job-label: Standard
npm-test-script: test-${{ needs.env-vars.outputs.e2e-test-subdir }}
coverage-subdirectory: ${{ needs.env-vars.outputs.e2e-test-subdir }}
coverage-report-name: ${{ needs.env-vars.outputs.e2e-coverage-report }}
npm-test-script: test-${{ needs.env-vars.outputs.e2e-standard-test-subdir }}
coverage-subdirectory: ${{ needs.env-vars.outputs.e2e-standard-test-subdir }}
coverage-report-name: ${{ needs.env-vars.outputs.e2e-standard-coverage-report }}

e2e-mirror-node-tests:
name: E2E Tests
Expand All @@ -79,6 +80,7 @@ jobs:

e2e-node-pem-stop-tests:
name: E2E Tests
if: ${{ !cancelled() && always() }}
uses: ./.github/workflows/zxc-e2e-test.yaml
needs:
- env-vars
Expand All @@ -91,6 +93,7 @@ jobs:

e2e-node-pem-kill-tests:
name: E2E Tests
if: ${{ !cancelled() && always() }}
uses: ./.github/workflows/zxc-e2e-test.yaml
needs:
- env-vars
Expand All @@ -103,6 +106,7 @@ jobs:

e2e-node-local-build-tests:
name: E2E Tests
if: ${{ !cancelled() && always() }}
uses: ./.github/workflows/zxc-e2e-test.yaml
needs:
- env-vars
Expand All @@ -115,6 +119,7 @@ jobs:

e2e-node-add-tests:
name: E2E Tests
if: ${{ !cancelled() && always() }}
uses: ./.github/workflows/zxc-e2e-test.yaml
needs:
- env-vars
Expand All @@ -127,6 +132,7 @@ jobs:

e2e-node-update-tests:
name: E2E Tests
if: ${{ !cancelled() && always() }}
uses: ./.github/workflows/zxc-e2e-test.yaml
needs:
- env-vars
Expand All @@ -139,6 +145,7 @@ jobs:

e2e-node-delete-tests:
name: E2E Tests
if: ${{ !cancelled() && always() }}
uses: ./.github/workflows/zxc-e2e-test.yaml
needs:
- env-vars
Expand Down Expand Up @@ -168,7 +175,7 @@ jobs:
needs:
- env-vars
- unit-tests
- e2e-tests
- e2e-standard-tests
- e2e-mirror-node-tests
- e2e-node-pem-stop-tests
- e2e-node-pem-kill-tests
Expand All @@ -182,7 +189,7 @@ jobs:
custom-job-label: Standard
enable-codecov-analysis: true
enable-e2e-coverage-report: true
e2e-test-subdir: ${{ needs.env-vars.outputs.e2e-test-subdir }}
e2e-standard-test-subdir: ${{ needs.env-vars.outputs.e2e-standard-test-subdir }}
e2e-mirror-node-test-subdir: ${{ needs.env-vars.outputs.e2e-mirror-node-test-subdir }}
e2e-node-pem-stop-test-subdir: ${{ needs.env-vars.outputs.e2e-node-pem-stop-test-subdir }}
e2e-node-pem-kill-test-subdir: ${{ needs.env-vars.outputs.e2e-node-pem-kill-test-subdir }}
Expand All @@ -191,7 +198,7 @@ jobs:
e2e-node-update-test-subdir: ${{ needs.env-vars.outputs.e2e-node-update-test-subdir }}
e2e-node-delete-test-subdir: ${{ needs.env-vars.outputs.e2e-node-delete-test-subdir }}
e2e-relay-test-subdir: ${{ needs.env-vars.outputs.e2e-relay-test-subdir }}
e2e-coverage-report: ${{ needs.env-vars.outputs.e2e-coverage-report }}
e2e-standard-coverage-report: ${{ needs.env-vars.outputs.e2e-standard-coverage-report }}
e2e-mirror-node-coverage-report: ${{ needs.env-vars.outputs.e2e-mirror-node-coverage-report }}
e2e-node-pem-stop-coverage-report: ${{ needs.env-vars.outputs.e2e-node-pem-stop-coverage-report }}
e2e-node-pem-kill-coverage-report: ${{ needs.env-vars.outputs.e2e-node-pem-kill-coverage-report }}
Expand All @@ -209,7 +216,7 @@ jobs:
needs:
- env-vars
- unit-tests
- e2e-tests
- e2e-standard-tests
- e2e-mirror-node-tests
- e2e-node-pem-stop-tests
- e2e-node-pem-kill-tests
Expand All @@ -223,7 +230,7 @@ jobs:
custom-job-label: Coverage
enable-codacy-coverage: true
enable-e2e-coverage-report: true
e2e-test-subdir: ${{ needs.env-vars.outputs.e2e-test-subdir }}
e2e-standard-test-subdir: ${{ needs.env-vars.outputs.e2e-standard-test-subdir }}
e2e-mirror-node-test-subdir: ${{ needs.env-vars.outputs.e2e-mirror-node-test-subdir }}
e2e-node-pem-stop-test-subdir: ${{ needs.env-vars.outputs.e2e-node-pem-stop-test-subdir }}
e2e-node-pem-kill-test-subdir: ${{ needs.env-vars.outputs.e2e-node-pem-kill-test-subdir }}
Expand All @@ -232,7 +239,7 @@ jobs:
e2e-node-update-test-subdir: ${{ needs.env-vars.outputs.e2e-node-update-test-subdir }}
e2e-node-delete-test-subdir: ${{ needs.env-vars.outputs.e2e-node-delete-test-subdir }}
e2e-relay-test-subdir: ${{ needs.env-vars.outputs.e2e-relay-test-subdir }}
e2e-coverage-report: ${{ needs.env-vars.outputs.e2e-coverage-report }}
e2e-standard-coverage-report: ${{ needs.env-vars.outputs.e2e-standard-coverage-report }}
e2e-mirror-node-coverage-report: ${{ needs.env-vars.outputs.e2e-mirror-node-coverage-report }}
e2e-node-pem-stop-coverage-report: ${{ needs.env-vars.outputs.e2e-node-pem-stop-coverage-report }}
e2e-node-pem-kill-coverage-report: ${{ needs.env-vars.outputs.e2e-node-pem-kill-coverage-report }}
Expand All @@ -243,43 +250,3 @@ jobs:
e2e-relay-coverage-report: ${{ needs.env-vars.outputs.e2e-relay-coverage-report }}
secrets:
codacy-project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}

# snyk:
# name: Snyk Scan
# uses: ./.github/workflows/zxc-code-analysis.yaml
# needs:
# - env-vars
# - unit-tests
# - e2e-tests
# - e2e-mirror-node-tests
# - e2e-node-pem-stop-tests
# - e2e-node-pem-kill-tests
# - e2e-node-local-build-tests
# - e2e-node-add-tests
# - e2e-node-update-tests
# - e2e-node-delete-tests
# - e2e-relay-tests
# if: ${{ github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name && github.actor != 'dependabot[bot]' }}
# with:
# custom-job-label: Standard
# enable-snyk-scan: true
# e2e-test-subdir: ${{ needs.env-vars.outputs.e2e-test-subdir }}
# e2e-mirror-node-test-subdir: ${{ needs.env-vars.outputs.e2e-mirror-node-test-subdir }}
# e2e-node-pem-stop-test-subdir: ${{ needs.env-vars.outputs.e2e-node-pem-stop-test-subdir }}
# e2e-node-pem-kill-test-subdir: ${{ needs.env-vars.outputs.e2e-node-pem-kill-test-subdir }}
# e2e-node-local-build-test-subdir: ${{ needs.env-vars.outputs.e2e-node-local-build-test-subdir }}
# e2e-node-add-test-subdir: ${{ needs.env-vars.outputs.e2e-node-add-test-subdir }}
# e2e-node-update-test-subdir: ${{ needs.env-vars.outputs.e2e-node-update-test-subdir }}
# e2e-node-delete-test-subdir: ${{ needs.env-vars.outputs.e2e-node-delete-test-subdir }}
# e2e-relay-test-subdir: ${{ needs.env-vars.outputs.e2e-relay-test-subdir }}
# e2e-coverage-report: ${{ needs.env-vars.outputs.e2e-coverage-report }}
# e2e-mirror-node-coverage-report: ${{ needs.env-vars.outputs.e2e-mirror-node-coverage-report }}
# e2e-node-pem-stop-coverage-report: ${{ needs.env-vars.outputs.e2e-node-pem-stop-coverage-report }}
# e2e-node-pem-kill-coverage-report: ${{ needs.env-vars.outputs.e2e-node-pem-kill-coverage-report }}
# e2e-node-local-build-coverage-report: ${{ needs.env-vars.outputs.e2e-node-local-build-coverage-report }}
# e2e-node-add-coverage-report: ${{ needs.env-vars.outputs.e2e-node-add-coverage-report }}
# e2e-node-update-coverage-report: ${{ needs.env-vars.outputs.e2e-node-update-coverage-report }}
# e2e-node-delete-coverage-report: ${{ needs.env-vars.outputs.e2e-node-delete-coverage-report }}
# e2e-relay-coverage-report: ${{ needs.env-vars.outputs.e2e-relay-coverage-report }}
# secrets:
# snyk-token: ${{ secrets.SNYK_TOKEN }}
44 changes: 22 additions & 22 deletions .github/workflows/zxc-code-analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ on:
type: string
required: false
default: "Analyze"
e2e-test-subdir:
description: "E2E Test Subdirectory:"
e2e-standard-test-subdir:
description: "E2E Standard Test Subdirectory:"
type: string
required: false
default: "e2e"
default: "e2e-standard"
e2e-mirror-node-test-subdir:
description: "E2E Mirror Node Test Subdirectory:"
type: string
Expand Down Expand Up @@ -100,11 +100,11 @@ on:
type: string
required: false
default: "e2e-relay"
e2e-coverage-report:
description: "E2E Coverage Report:"
e2e-standard-coverage-report:
description: "E2E Standard Coverage Report:"
type: string
required: false
default: "E2E Tests Coverage Report"
default: "E2E Standard Tests Coverage Report"
e2e-mirror-node-coverage-report:
description: "E2E Mirror Node Coverage Report:"
type: string
Expand Down Expand Up @@ -195,12 +195,12 @@ jobs:
name: Unit Test Coverage Report
path: 'coverage/unit'

- name: Download E2E Coverage Report
- name: Download E2E Standard Coverage Report
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
if: ${{ (inputs.enable-codecov-analysis || inputs.enable-codacy-coverage) && inputs.enable-e2e-coverage-report && !cancelled() && !failure() }}
with:
name: ${{ inputs.e2e-coverage-report }}
path: 'coverage/${{ inputs.e2e-test-subdir }}'
name: ${{ inputs.e2e-standard-coverage-report }}
path: 'coverage/${{ inputs.e2e-standard-test-subdir }}'

- name: Download E2E Mirror Node Coverage Report
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
Expand All @@ -223,41 +223,41 @@ jobs:
name: ${{ inputs.e2e-node-pem-kill-coverage-report }}
path: 'coverage/${{ inputs.e2e-node-pem-kill-test-subdir }}'

- name: Download E2E Relay Coverage Report
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
if: ${{ (inputs.enable-codecov-analysis || inputs.enable-codacy-coverage) && inputs.enable-e2e-coverage-report && !cancelled() && !failure() }}
with:
name: ${{ inputs.e2e-relay-coverage-report }}
path: 'coverage/${{ inputs.e2e-relay-test-subdir }}'

- name: Download E2E Local Build Coverage Report
- name: Download E2E Node Local Build Coverage Report
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
if: ${{ (inputs.enable-codecov-analysis || inputs.enable-codacy-coverage) && inputs.enable-e2e-coverage-report && !cancelled() && !failure() }}
with:
name: ${{ inputs.e2e-node-local-build-coverage-report }}
path: 'coverage/${{ inputs.e2e-node-local-build-test-subdir }}'

- name: Download E2E Add Coverage Report
- name: Download E2E Node Add Coverage Report
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
if: ${{ (inputs.enable-codecov-analysis || inputs.enable-codacy-coverage) && inputs.enable-e2e-coverage-report && !cancelled() && !failure() }}
with:
name: ${{ inputs.e2e-node-add-coverage-report }}
path: 'coverage/${{ inputs.e2e-node-add-test-subdir }}'

- name: Download E2E Update Coverage Report
- name: Download E2E Node Update Coverage Report
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
if: ${{ (inputs.enable-codecov-analysis || inputs.enable-codacy-coverage) && inputs.enable-e2e-coverage-report && !cancelled() && !failure() }}
with:
name: ${{ inputs.e2e-node-udpate-coverage-report }}
path: 'coverage/${{ inputs.e2e-udpate-add-test-subdir }}'
name: ${{ inputs.e2e-node-update-coverage-report }}
path: 'coverage/${{ inputs.e2e-node-update-test-subdir }}'

- name: Download E2E Delete Coverage Report
- name: Download E2E Node Delete Coverage Report
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
if: ${{ (inputs.enable-codecov-analysis || inputs.enable-codacy-coverage) && inputs.enable-e2e-coverage-report && !cancelled() && !failure() }}
with:
name: ${{ inputs.e2e-node-delete-coverage-report }}
path: 'coverage/${{ inputs.e2e-node-delete-test-subdir }}'

- name: Download E2E Relay Coverage Report
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
if: ${{ (inputs.enable-codecov-analysis || inputs.enable-codacy-coverage) && inputs.enable-e2e-coverage-report && !cancelled() && !failure() }}
with:
name: ${{ inputs.e2e-relay-coverage-report }}
path: 'coverage/${{ inputs.e2e-relay-test-subdir }}'

- name: Publish To Codecov
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0
if: ${{ inputs.enable-codecov-analysis && !cancelled() && !failure() }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/zxc-e2e-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ on:
description: "NPM Test Run Script:"
type: string
required: false
default: "test-e2e"
default: "test-e2e-standard"
coverage-subdirectory:
description: "Coverage Report Subdirectory:"
type: string
Expand Down
Loading

0 comments on commit 4f80c33

Please sign in to comment.