Skip to content

Commit

Permalink
Refactor: e2e dataverse branch defined as action env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
GPortas committed Jun 29, 2023
1 parent b17421d commit 7834a9b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .env.e2e
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
VITE_DATAVERSE_BACKEND_URL=http://localhost:8000
E2E_DATAVERSE_BRANCH_NAME=9588-datasets-api-extension
6 changes: 4 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: test

on: push

env:
E2E_DATAVERSE_BRANCH: 9588-datasets-api-extension

jobs:
e2e:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -36,8 +39,7 @@ jobs:

- name: Start containers
working-directory: dev-env
# hardcoded branch name for action test
run: ./run-env.sh 9588-datasets-api-extension
run: ./run-env.sh "$E2E_DATAVERSE_BRANCH"

- name: Wait for containers to be ready
run: timeout 300s sh -c 'while ! docker logs dev_dataverse_bootstrap 2>&1 | grep -q "your instance has been configured"; do sleep 2; done'
Expand Down

0 comments on commit 7834a9b

Please sign in to comment.