Skip to content

Commit d7b404e

Browse files
committed
fix: Refactor CI jobs to inherit secrets and streamline environment variables
1 parent ea06d32 commit d7b404e

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

.github/workflows/deploy.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,11 @@ jobs:
4343
# Build and test before deploying.
4444
ci:
4545
needs: validate
46-
runs-on: ubuntu-latest
47-
environment: ${{ inputs.environment }}
48-
steps:
49-
- uses: ./.github/workflows/main.yml
50-
with:
51-
SEPOLIA_RPC_URL: ${{ secrets.SEPOLIA_RPC_URL }}
52-
ARBITRUM_SEPOLIA_RPC_URL: ${{ secrets.ARBITRUM_SEPOLIA_RPC_URL }}
46+
uses: ./.github/workflows/main.yml
47+
with:
48+
SEPOLIA_RPC_URL: ${{ secrets.SEPOLIA_RPC_URL }}
49+
ARBITRUM_SEPOLIA_RPC_URL: ${{ secrets.ARBITRUM_SEPOLIA_RPC_URL }}
50+
secrets: inherit
5351

5452
# Deploy and verify contract.
5553
deploy:

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ concurrency:
1515

1616
env:
1717
FOUNDRY_PROFILE: ci
18-
SEPOLIA_RPC_URL: ${{ secrets.SEPOLIA_RPC_URL }}
19-
ARBITRUM_SEPOLIA_RPC_URL: ${{ secrets.ARBITRUM_SEPOLIA_RPC_URL }}
2018

2119
jobs:
2220
build-and-test:
@@ -46,6 +44,8 @@ jobs:
4644
- name: Run Foundry coverage
4745
env:
4846
CI: true
47+
SEPOLIA_RPC_URL: ${{ secrets.SEPOLIA_RPC_URL }}
48+
ARBITRUM_SEPOLIA_RPC_URL: ${{ secrets.ARBITRUM_SEPOLIA_RPC_URL }}
4949
run: make generate-coverage
5050

5151
- name: Upload coverage reports to Codecov

0 commit comments

Comments
 (0)