Skip to content

Commit

Permalink
fix: no secrets in matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
janek26 committed Jul 15, 2022
1 parent 1a7dc11 commit 5ff7a26
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 17 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ jobs:
TEST_PROVIDER_BASE_URL: http://127.0.0.1:5050/
- name: sequencer-goerli
TEST_PROVIDER_BASE_URL: https://alpha4.starknet.io
TEST_ACCOUNT_PRIVATE_KEY: ${{ secrets.TEST_ACCOUNT_PRIVATE_KEY }}
TEST_ACCOUNT_ADDRESS: ${{ secrets.TEST_ACCOUNT_ADDRESS }}
ENABLE_TEST_ACCOUNT_PRIVATE_KEY: true
ENABLE_TEST_ACCOUNT_ADDRESS: true
- name: rpc-goerli
TEST_RPC_URL: ${{ secrets.TEST_RPC_URL }}
TEST_ACCOUNT_PRIVATE_KEY: ${{ secrets.TEST_ACCOUNT_PRIVATE_KEY }}
TEST_ACCOUNT_ADDRESS: ${{ secrets.TEST_ACCOUNT_ADDRESS }}
ENABLE_TEST_RPC_URL: true
ENABLE_TEST_ACCOUNT_PRIVATE_KEY: true
ENABLE_TEST_ACCOUNT_ADDRESS: true

name: Run test on ${{ matrix.name }}
runs-on: ubuntu-latest
Expand All @@ -53,9 +53,9 @@ jobs:
- 5050:5050
env:
TEST_PROVIDER_BASE_URL: ${{ matrix.TEST_PROVIDER_BASE_URL }}
TEST_RPC_URL: ${{ matrix.TEST_RPC_URL }}
TEST_ACCOUNT_PRIVATE_KEY: ${{ matrix.TEST_ACCOUNT_PRIVATE_KEY }}
TEST_ACCOUNT_ADDRESS: ${{ matrix.TEST_ACCOUNT_ADDRESS }}
TEST_RPC_URL: ${{ secrets.TEST_RPC_URL }}
TEST_ACCOUNT_PRIVATE_KEY: ${{ matrix.ENABLE_TEST_ACCOUNT_PRIVATE_KEY && secrets.TEST_ACCOUNT_PRIVATE_KEY }}
TEST_ACCOUNT_ADDRESS: ${{ matrix.ENABLE_TEST_ACCOUNT_ADDRESS && secrets.TEST_ACCOUNT_ADDRESS }}

steps:
- uses: actions/checkout@v2
Expand Down
17 changes: 8 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,15 @@ jobs:
TEST_PROVIDER_BASE_URL: http://127.0.0.1:5050/
- name: sequencer-goerli
TEST_PROVIDER_BASE_URL: https://alpha4.starknet.io
TEST_ACCOUNT_PRIVATE_KEY: ${{ secrets.TEST_ACCOUNT_PRIVATE_KEY }}
TEST_ACCOUNT_ADDRESS: ${{ secrets.TEST_ACCOUNT_ADDRESS }}
ENABLE_TEST_ACCOUNT_PRIVATE_KEY: true
ENABLE_TEST_ACCOUNT_ADDRESS: true
- name: rpc-goerli
TEST_RPC_URL: ${{ secrets.TEST_RPC_URL }}
TEST_ACCOUNT_PRIVATE_KEY: ${{ secrets.TEST_ACCOUNT_PRIVATE_KEY }}
TEST_ACCOUNT_ADDRESS: ${{ secrets.TEST_ACCOUNT_ADDRESS }}
ENABLE_TEST_RPC_URL: true
ENABLE_TEST_ACCOUNT_PRIVATE_KEY: true
ENABLE_TEST_ACCOUNT_ADDRESS: true

name: Run test on ${{ matrix.name }}
runs-on: ubuntu-latest
needs: ['build']

services:
devnet:
Expand All @@ -51,9 +50,9 @@ jobs:
- 5050:5050
env:
TEST_PROVIDER_BASE_URL: ${{ matrix.TEST_PROVIDER_BASE_URL }}
TEST_RPC_URL: ${{ matrix.TEST_RPC_URL }}
TEST_ACCOUNT_PRIVATE_KEY: ${{ matrix.TEST_ACCOUNT_PRIVATE_KEY }}
TEST_ACCOUNT_ADDRESS: ${{ matrix.TEST_ACCOUNT_ADDRESS }}
TEST_RPC_URL: ${{ secrets.TEST_RPC_URL }}
TEST_ACCOUNT_PRIVATE_KEY: ${{ matrix.ENABLE_TEST_ACCOUNT_PRIVATE_KEY && secrets.TEST_ACCOUNT_PRIVATE_KEY }}
TEST_ACCOUNT_ADDRESS: ${{ matrix.ENABLE_TEST_ACCOUNT_ADDRESS && secrets.TEST_ACCOUNT_ADDRESS }}

steps:
- uses: actions/checkout@v2
Expand Down

0 comments on commit 5ff7a26

Please sign in to comment.