Skip to content

Commit

Permalink
ci: cache bug fix [test]
Browse files Browse the repository at this point in the history
  • Loading branch information
Emmanuel Joseph (JET) committed Oct 10, 2024
1 parent f0a6314 commit b4a148b
Showing 1 changed file with 6 additions and 40 deletions.
46 changes: 6 additions & 40 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ jobs:
submodules: recursive

- name: Install Foundry
id: foundry-output
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
Expand All @@ -29,27 +28,6 @@ jobs:
run: |
forge --version
- name: Cache Foundry
uses: actions/cache@v3
with:
path: ~/.foundry
key: ${{ runner.os }}-foundry-cache
restore-keys: |
${{ runner.os }}-foundry-cache
build:
name: Build Contracts
runs-on: ubuntu-latest
needs: setup
steps:
- uses: actions/checkout@v4

- name: Restore Foundry Cache
uses: actions/cache@v3
with:
path: ~/.foundry
key: ${{ runner.os }}-foundry-cache

- name: Run Forge fmt
run: |
forge fmt --check
Expand All @@ -60,19 +38,6 @@ jobs:
forge build --sizes
id: forge-build

quality:
name: Run Tests
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v4

- name: Restore Foundry Cache
uses: actions/cache@v3
with:
path: ~/.foundry
key: ${{ runner.os }}-foundry-cache

- name: Run Forge tests
run: |
forge test -vvv
Expand All @@ -81,17 +46,18 @@ jobs:
deploy:
name: Deploy to PulseChain Testnet
runs-on: ubuntu-latest
needs: quality
needs: setup
environment: pulsechain-testnet
if: github.event_name == 'workflow_dispatch'
steps:
- uses: actions/checkout@v4
with:
submodules: recursive

- name: Restore Foundry Cache
uses: actions/cache@v3
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
path: ~/.foundry
key: ${{ runner.os }}-foundry-cache
version: nightly

- name: Deploy MultiSigEnterpriseVault Contract
run: |
Expand Down

0 comments on commit b4a148b

Please sign in to comment.