Skip to content

Commit

Permalink
Use local actions with threads set to 1
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnGuilding committed Nov 8, 2024
1 parent 25552b1 commit dd6ac14
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/forge-test-multi-account.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ jobs:
run: "pnpm install"

- name: "Test account: default"
run: 'ACCOUNT_TYPE=DEFAULT forge test --match-path "${{ inputs.match-path }}"'
run: 'ACCOUNT_TYPE=DEFAULT forge test --threads 1 --match-path "${{ inputs.match-path }}"'
env:
MAINNET_RPC_URL: ${{ secrets.MAINNET_RPC_URL }}
TESTNET_RPC_URL: ${{ secrets.TESTNET_RPC_URL }}
Expand All @@ -113,7 +113,7 @@ jobs:
FOUNDRY_MEMORY_LIMIT: ${{ inputs.foundry-memory-limit }}

- name: "Test account: Safe"
run: 'ACCOUNT_TYPE=SAFE forge test --match-path "${{ inputs.match-path }}"'
run: 'ACCOUNT_TYPE=SAFE forge test --threads 1 --match-path "${{ inputs.match-path }}"'
env:
MAINNET_RPC_URL: ${{ secrets.MAINNET_RPC_URL }}
TESTNET_RPC_URL: ${{ secrets.TESTNET_RPC_URL }}
Expand All @@ -122,7 +122,7 @@ jobs:
FOUNDRY_MEMORY_LIMIT: ${{ inputs.foundry-memory-limit }}

- name: "Test account: Kernel"
run: 'ACCOUNT_TYPE=KERNEL forge test --match-path "${{ inputs.match-path }}"'
run: 'ACCOUNT_TYPE=KERNEL forge test --threads 1 --match-path "${{ inputs.match-path }}"'
env:
MAINNET_RPC_URL: ${{ secrets.MAINNET_RPC_URL }}
TESTNET_RPC_URL: ${{ secrets.TESTNET_RPC_URL }}
Expand All @@ -131,7 +131,7 @@ jobs:
FOUNDRY_MEMORY_LIMIT: ${{ inputs.foundry-memory-limit }}

- name: "Test account: NEXUS"
run: 'ACCOUNT_TYPE=NEXUS forge test --match-path "${{ inputs.match-path }}"'
run: 'ACCOUNT_TYPE=NEXUS forge test --threads 1 --match-path "${{ inputs.match-path }}"'
env:
MAINNET_RPC_URL: ${{ secrets.MAINNET_RPC_URL }}
TESTNET_RPC_URL: ${{ secrets.TESTNET_RPC_URL }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/forge-test-simulate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ jobs:
run: "pnpm install"

- name: "Run Foundry Tests on supplied files"
run: 'SIMULATE=true forge test --match-path "${{ inputs.match-path }}"'
run: 'SIMULATE=true forge test --threads 1 --match-path "${{ inputs.match-path }}"'
env:
MAINNET_RPC_URL: ${{ secrets.MAINNET_RPC_URL }}
TESTNET_RPC_URL: ${{ secrets.TESTNET_RPC_URL }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ env:

jobs:
build:
# uses: "./.github/workflows/forge-build.yaml"
uses: "rhinestonewtf/reusable-workflows/.github/workflows/forge-build.yaml@main"
uses: "./.github/workflows/forge-build.yaml"
# uses: "rhinestonewtf/reusable-workflows/.github/workflows/forge-build.yaml@main"

test-multi-account:
needs: ["build"]
# uses: "./.github/workflows/forge-test-multi-account.yaml"
uses: "rhinestonewtf/reusable-workflows/.github/workflows/forge-test-multi-account.yaml@main"
uses: "./.github/workflows/forge-test-multi-account.yaml"
# uses: "rhinestonewtf/reusable-workflows/.github/workflows/forge-test-multi-account.yaml@main"
with:
foundry-fuzz-runs: 5000
foundry-profile: "test"
Expand Down

0 comments on commit dd6ac14

Please sign in to comment.