diff --git a/.github/workflows/PR.yml b/.github/workflows/PR.yml index d040309..198e5fd 100644 --- a/.github/workflows/PR.yml +++ b/.github/workflows/PR.yml @@ -29,4 +29,10 @@ 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}} diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 98ef73a..d2e7d0f 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -1,22 +1,16 @@ name: Rust - on: push: branches: [ "main", "master" ] - - 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: - build: - + build-and-test: runs-on: ubuntu-latest - steps: - uses: actions/checkout@v3 - name: Build