Skip to content

Commit

Permalink
chore: execute the build workflow before running other workflows to i…
Browse files Browse the repository at this point in the history
…mprove cache utilization (#10515)

Signed-off-by: Nathan Klick <nathan@swirldslabs.com>
  • Loading branch information
nathanklick authored Dec 14, 2023
1 parent 69c4ad0 commit 4f04891
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
37 changes: 37 additions & 0 deletions .github/workflows/node-flow-pull-request-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,24 @@ jobs:
gradle-cache-username: ${{ secrets.GRADLE_CACHE_USERNAME }}
gradle-cache-password: ${{ secrets.GRADLE_CACHE_PASSWORD }}

dependency-check:
name: Dependency (Module Info)
uses: ./.github/workflows/node-zxc-compile-application-code.yaml
needs:
- build
with:
custom-job-label: "Check"
enable-dependency-check: true
secrets:
access-token: ${{ secrets.GITHUB_TOKEN }}
gradle-cache-username: ${{ secrets.GRADLE_CACHE_USERNAME }}
gradle-cache-password: ${{ secrets.GRADLE_CACHE_PASSWORD }}

spotless:
name: Spotless
uses: ./.github/workflows/node-zxc-compile-application-code.yaml
needs:
- build
with:
custom-job-label: "Check"
enable-unit-tests: false
Expand All @@ -60,6 +75,8 @@ jobs:
unit-tests:
name: Unit Tests
uses: ./.github/workflows/node-zxc-compile-application-code.yaml
needs:
- build
with:
custom-job-label: Standard
enable-unit-tests: true
Expand All @@ -75,6 +92,8 @@ jobs:
eet-tests:
name: E2E Tests
uses: ./.github/workflows/node-zxc-compile-application-code.yaml
needs:
- build
with:
custom-job-label: Standard
enable-unit-tests: false
Expand All @@ -91,6 +110,8 @@ jobs:
integration-tests:
name: Integration Tests
uses: ./.github/workflows/node-zxc-compile-application-code.yaml
needs:
- build
with:
custom-job-label: Standard
enable-unit-tests: false
Expand All @@ -107,6 +128,8 @@ jobs:
hapi-tests-misc:
name: HAPI Tests (Misc)
uses: ./.github/workflows/node-zxc-compile-application-code.yaml
needs:
- build
with:
custom-job-label: Standard
enable-unit-tests: false
Expand All @@ -124,6 +147,8 @@ jobs:
hapi-tests-crypto:
name: HAPI Tests (Crypto)
uses: ./.github/workflows/node-zxc-compile-application-code.yaml
needs:
- build
with:
custom-job-label: Standard
enable-unit-tests: false
Expand All @@ -141,6 +166,8 @@ jobs:
hapi-tests-token:
name: HAPI Tests (Token)
uses: ./.github/workflows/node-zxc-compile-application-code.yaml
needs:
- build
with:
custom-job-label: Standard
enable-unit-tests: false
Expand All @@ -158,6 +185,8 @@ jobs:
hapi-tests-smart-contract:
name: HAPI Tests (Smart Contract)
uses: ./.github/workflows/node-zxc-compile-application-code.yaml
needs:
- build
with:
custom-job-label: Standard
enable-unit-tests: false
Expand All @@ -175,6 +204,8 @@ jobs:
hapi-tests-time-consuming:
name: HAPI Tests (Time Consuming)
uses: ./.github/workflows/node-zxc-compile-application-code.yaml
needs:
- build
with:
custom-job-label: Standard
enable-unit-tests: false
Expand All @@ -192,6 +223,8 @@ jobs:
abbreviated-panel:
name: JRS Panel
uses: ./.github/workflows/zxc-jrs-regression.yaml
needs:
- build
if: ${{ github.actor != 'dependabot[bot]' && github.event.pull_request.head.repo.full_name == github.repository }}
with:
custom-job-name: "Platform SDK"
Expand All @@ -214,6 +247,8 @@ jobs:
snyk-scan:
name: Snyk Scan
uses: ./.github/workflows/node-zxc-compile-application-code.yaml
needs:
- build
if: ${{ github.actor != 'dependabot[bot]' && github.event.pull_request.head.repo.full_name == github.repository }}
with:
custom-job-label: Standard
Expand All @@ -231,6 +266,8 @@ jobs:
artifact-determinism:
name: Artifact Determinism
uses: ./.github/workflows/zxc-verify-gradle-build-determinism.yaml
needs:
- build
if: ${{ github.actor != 'dependabot[bot]' && github.event.pull_request.head.repo.full_name == github.repository }}
with:
ref: ${{ github.event.inputs.ref || '' }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/node-zxc-compile-application-code.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ on:
description: "Dependency Scope Check Enabled"
type: boolean
required: false
default: true
default: false
enable-snyk-scan:
description: "Snyk Scan Enabled"
type: boolean
Expand Down

0 comments on commit 4f04891

Please sign in to comment.