diff --git a/.github/workflows/PR.yml b/.github/workflows/PR.yml index 198e5fd..de63a83 100644 --- a/.github/workflows/PR.yml +++ b/.github/workflows/PR.yml @@ -2,6 +2,12 @@ name: Rust test on PR fork on: pull_request_target: types: [opened, synchronize] +env: + CARGO_TERM_COLOR: always + PAYSTACK_API_KEY: ${{secrets.PAYSTACK_API_KEY}} + BANK_ACCOUNT: ${{secrets.BANK_ACCOUNT}} + BANK_CODE: ${{secrets.BANK_CODE}} + BANK_NAME: ${{secrets.BANK_NAME}} jobs: run-test-on-pr: runs-on: ubuntu-latest @@ -29,10 +35,4 @@ jobs: run: cargo build --verbose - name: Run tests run: cargo test --verbose - env: - CARGO_TERM_COLOR: always - PAYSTACK_API_KEY: ${{secrets.PAYSTACK_API_KEY}} - BANK_ACCOUNT: ${{secrets.BANK_ACCOUNT}} - BANK_CODE: ${{secrets.BANK_CODE}} - BANK_NAME: ${{secrets.BANK_NAME}}