Add environment variable access in test workflow #4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run Bun Tests | |
on: | |
push: | |
branches: ["*"] | |
pull_request: | |
branches: ["*"] | |
jobs: | |
test: | |
name: Run Tests | |
env: | |
PAYSTACK_SECRET: ${{ secrets.PAYSTACK_SECRET }} | |
CUSTOMER_CODE: ${{ secrets.CUSTOMER_CODE }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "20.x" | |
- name: Install Bun | |
run: npm install -g bun | |
- name: Run Tests | |
run: bun test | |
- name: Access environment variable | |
run: echo $PAYSTACK_SECRET |