Skip to content

Commit

Permalink
Added test envs to the test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisli30 committed Oct 29, 2024
1 parent 81f6937 commit 7f485e3
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/run-test-on-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ on:
jobs:
test:
runs-on: ubuntu-latest
environment: test # The below environment variables are only available in the test environment

env:
TEST_PRIVATE_KEY: ${{ secrets.TEST_PRIVATE_KEY }}
TOKEN_CONTRACT: ${{ vars.TOKEN_CONTRACT }}
ORACLE_CONTRACT: ${{ vars.ORACLE_CONTRACT }}
ENDPOINT: ${{ vars.ENDPOINT }}

steps:
- name: Checkout repository
Expand All @@ -21,5 +28,12 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Debug environment variables
run: |
echo "TOKEN_CONTRACT: $TOKEN_CONTRACT"
echo "ORACLE_CONTRACT: $ORACLE_CONTRACT"
echo "ENDPOINT: $ENDPOINT"
echo "TEST_PRIVATE_KEY is set: ${{ env.TEST_PRIVATE_KEY != '' }}"
- name: Run tests
run: npm test

0 comments on commit 7f485e3

Please sign in to comment.