Skip to content

Commit 1be2b5e

Browse files
committed
add BASE_URL env var
1 parent 3279434 commit 1be2b5e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/github_actions_tests.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ jobs:
1212
test:
1313
runs-on: ubuntu-latest
1414

15+
env:
16+
BASE_URL: https://your-base-url.com # <-- Set your actual BASE_URL here
17+
1518
steps:
1619
- name: Checkout code
1720
uses: actions/checkout@v4
@@ -33,12 +36,9 @@ jobs:
3336
source .venv/bin/activate
3437
python -m playwright install chrome --with-deps
3538
36-
- name: create enviornment file from workflow
39+
- name: Create .env file from workflow
3740
run: |
38-
set -x
39-
ENV_FILE=".env"
40-
echo "BASE_URL=${BASE_URL}" >> "$ENV_FILE"
41-
set +x
41+
echo "BASE_URL=${BASE_URL}" > .env
4242
4343
- name: Run tests with Pytest
4444
run: |

0 commit comments

Comments
 (0)