Skip to content

Commit 6cb7bfe

Browse files
Tamas Pallospallost
authored andcommitted
Add e2e tests CI workflow
1 parent ae98fa9 commit 6cb7bfe

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

.github/workflows/docker-build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,8 @@ jobs:
5959
--cache-from type=registry,ref=$IMAGE_NAME:builder \
6060
--tag $IMAGE_NAME:latest \
6161
.
62+
63+
run_cypress_tests:
64+
needs:
65+
- push_to_registry
66+
uses: ./.github/workflows/run-cypress-tests.yml
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Run cypress tests
2+
3+
on:
4+
# this workflow is only called by others, won't be executed on itself
5+
# as it uses the pre-built docker image that is produced in the upstream job
6+
workflow_call:
7+
8+
jobs:
9+
run_cypress_tests:
10+
name: Run cypress e2e tests from docker
11+
runs-on: ubuntu-20.04
12+
13+
steps:
14+
- name: Collect Workflow Telemetry
15+
uses: runforesight/foresight-workflow-kit-action@v1
16+
if: ${{ always() }}
17+
with:
18+
api_key: ${{ secrets.FORESIGHT_GITHUB_ACTIONS }}
19+
20+
- name: Checkout code
21+
uses: actions/checkout@v3
22+
23+
- name: Extract metadata to env variables
24+
uses: HSLdevcom/jore4-tools/github-actions/extract-metadata@extract-metadata-v1
25+
26+
- name: Start e2e env
27+
uses: HSLdevcom/jore4-tools/github-actions/setup-e2e-environment@setup-e2e-environment-v1
28+
with:
29+
hastus_version: "${{ env.IMAGE_NAME }}:${{ env.COMMIT_ID }}"
30+
31+
- name: Run e2e tests from github action
32+
uses: HSLdevcom/jore4-tools/github-actions/run-cypress-tests@run-cypress-tests-v1

0 commit comments

Comments
 (0)