Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
siibra-explorer
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Xiao Gui
siibra-explorer
Commits
c3827e35
Unverified
Commit
c3827e35
authored
5 years ago
by
xgui3783
Committed by
GitHub
5 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #16 from FZJ-INM1-BDA/bugfix/e2eTestOnPR
e2e test on PR branch
parents
908cc5f3
6c06472b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.github/workflows/e2e.yml
+20
-7
20 additions, 7 deletions
.github/workflows/e2e.yml
with
20 additions
and
7 deletions
.github/workflows/e2e.yml
+
20
−
7
View file @
c3827e35
...
...
@@ -8,8 +8,6 @@ on:
env
:
DOCKER_IMAGE_NAME
:
interactive-viewer
DOCKER_IMAGE_TAG
:
${{ github.sha }}
DOCKER_SAVE_FILENAME
:
iav.tar.gz
ARTEFACT_NAME
:
iav_docker_image
DOCKER_CONTAINER_NAME
:
github-actions-iav-dkr-container
jobs
:
...
...
@@ -26,7 +24,7 @@ jobs:
run
:
|
docker build --build-arg BACKEND_URL=${BACKEND_URL} -t ${DOCKER_IMAGE_NAME}:${DOCKER_IMAGE_TAG} .
env
:
BACKEND_URL
:
http://localhost:3001
BACKEND_URL
:
http://localhost:3001
/
test
:
runs-on
:
self-hosted
...
...
@@ -40,9 +38,24 @@ jobs:
run
:
|
npm i
-
name
:
run docker image ${{ env.DOCKER_IMAGE_NAME }}:${{ env.DOCKER_IMAGE_TAG }}
run
:
docker run -p 3001:3000 --rm --name ${DOCKER_CONTAINER_NAME} -dit ${DOCKER_IMAGE_NAME}:${DOCKER_IMAGE_TAG}
-
name
:
run pptr tests
run
:
|
docker run -p 3001:3000 \
--rm \
--name ${DOCKER_CONTAINER_NAME} \
--env HBP_CLIENTID=${{ secrets.HBP_CLIENTID }} \
--env HBP_CLIENTSECRET=${{ secrets.HBP_CLIENTSECRET }} \
--env REFRESH_TOKEN=${{ secrets.REFRESH_TOKEN }} \
-dit \
${DOCKER_IMAGE_NAME}:${DOCKER_IMAGE_TAG}
-
name
:
sleep for 60s
run
:
sleep 60s
-
name
:
run pptr tests - ${{ env.TEST_URL }}
run
:
node ./node_modules/.bin/mocha ./test/databrowser.spec.js --timeout 1800000
-
name
:
cleanup
env
:
TEST_URL
:
http://localhost:3001
-
name
:
cleanup, stop container ${{ env.DOCKER_CONTAINER_NAME }}
if
:
always()
run
:
docker stop ${DOCKER_CONTAINER_NAME} && docker rmi ${DOCKER_IMAGE_NAME}:${DOCKER_IMAGE_TAG}
run
:
docker stop ${DOCKER_CONTAINER_NAME}
-
name
:
cleanup, remove image ${{ env.DOCKER_IMAGE_NAME }}:${{ env.DOCKER_IMAGE_TAG }}
if
:
success()
run
:
docker rmi ${DOCKER_IMAGE_NAME}:${DOCKER_IMAGE_TAG}
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment