Skip to content

Commit cd822bd

Browse files
committed
fix: update workflow inputs to use correct types and remove unnecessary environment variable
1 parent bdcbbe4 commit cd822bd

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ on:
1717

1818
jobs:
1919

20+
# Build and test before deploying.
21+
ci:
22+
uses: ./.github/workflows/main.yml
23+
with:
24+
SEPOLIA_RPC_URL: ${{ vars.SEPOLIA_RPC_URL }}
25+
ARBITRUM_SEPOLIA_RPC_URL: ${{ vars.ARBITRUM_SEPOLIA_RPC_URL }}
26+
2027
# Build and test before deploying.
2128
ci:
2229
uses: ./.github/workflows/main.yml

.github/workflows/main.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@ name: Default
33
on:
44
pull_request:
55
workflow_call:
6-
secrets:
6+
inputs:
77
SEPOLIA_RPC_URL:
88
required: true
9+
type: string
910
ARBITRUM_SEPOLIA_RPC_URL:
1011
required: true
12+
type: string
1113

1214
concurrency:
1315
group: ${{ github.ref }}-ci
@@ -20,7 +22,6 @@ jobs:
2022
build-and-test:
2123
name: Build and test
2224
runs-on: ubuntu-latest
23-
environment: 'testnets'
2425
steps:
2526
- uses: actions/checkout@v4
2627
with:
@@ -44,8 +45,8 @@ jobs:
4445
- name: Run Foundry coverage
4546
env:
4647
CI: true
47-
SEPOLIA_RPC_URL: ${{ secrets.SEPOLIA_RPC_URL }}
48-
ARBITRUM_SEPOLIA_RPC_URL: ${{ secrets.ARBITRUM_SEPOLIA_RPC_URL }}
48+
SEPOLIA_RPC_URL: ${{ inputs.SEPOLIA_RPC_URL || vars.SEPOLIA_RPC_URL }}
49+
ARBITRUM_SEPOLIA_RPC_URL: ${{ inputs.ARBITRUM_SEPOLIA_RPC_URL || vars.ARBITRUM_SEPOLIA_RPC_URL }}
4950
run: make generate-coverage
5051

5152
- name: Upload coverage reports to Codecov

0 commit comments

Comments
 (0)