|
48 | 48 | fi |
49 | 49 | echo "file_list=$FILES" >> $GITHUB_OUTPUT |
50 | 50 |
|
51 | | -# # Job to run tests in parallel based on the discovered files |
52 | | -# e2e-docker: |
53 | | -# needs: get-e2e-files |
54 | | -# if: needs.get-e2e-files.outputs.file_list != '[]' && inputs.DOCKER_IMAGE_TAG != '' |
55 | | -# runs-on: ubuntu-latest # Or ubuntu-24.04 |
56 | | -# strategy: |
57 | | -# fail-fast: false # Continue running other tests even if one fails |
58 | | -# matrix: |
59 | | -# file: ${{ fromJSON(needs.get-e2e-files.outputs.file_list) }} |
60 | | -# env: |
61 | | -# IMAGE_FILE_NAME: okr-docker-image.tar |
62 | | -# |
63 | | -# steps: |
64 | | -# - run: echo "${{ github.run_id }}" |
65 | | -# - name: Checkout Target Repo Code (for Cypress config/plugins) |
66 | | -# uses: actions/checkout@v4 |
67 | | -# |
68 | | -# - name: Download Docker image artifact |
69 | | -# uses: actions/download-artifact@v4 |
70 | | -# with: |
71 | | -# name: okr-image |
72 | | -# path: ${{ runner.temp }} |
73 | | -# |
74 | | -# - name: Load image into Docker |
75 | | -# run: docker load --input ${{ runner.temp }}/okr-docker-image.tar |
76 | | -# |
77 | | -# # --- E2E Test Execution Steps (Adjust as needed) --- |
78 | | -# - name: Set up Docker Compose / Start Services (if needed) |
79 | | -# run: cd docker && docker compose up -d keycloak-pitc |
80 | | -# |
81 | | -# - name: Run Application Container |
82 | | -# run: | |
83 | | -# docker run --network=host \ |
84 | | -# -e SPRING_PROFILES_ACTIVE=integration-test \ |
85 | | -# ${{inputs.DOCKER_IMAGE_TAG }} & |
86 | | -# |
87 | | -# - name: Set up node for Cypress |
88 | | -# uses: actions/setup-node@v4 |
89 | | -# with: |
90 | | -# node-version: ${{vars.NODE_VERSION}} |
91 | | -# |
92 | | -# - name: Cypress run e2e tests |
93 | | -# uses: cypress-io/github-action@v6 |
94 | | -# with: |
95 | | -# build: npm i -D cypress |
96 | | -# working-directory: frontend |
97 | | -# install: false |
98 | | -# wait-on: 'http://pitc.okr.localhost:8080/config, http://localhost:8544' |
99 | | -# wait-on-timeout: 120 |
100 | | -# browser: chrome |
101 | | -# headed: false |
102 | | -# config: baseUrl=http://pitc.okr.localhost:8080 |
103 | | -# spec: cypress/e2e/${{ matrix.file }} |
104 | | -# |
105 | | -# - uses: actions/upload-artifact@v4 |
106 | | -# if: always() |
107 | | -# with: |
108 | | -# name: cypress-screenshots for ${{ matrix.file }} |
109 | | -# path: frontend/cypress/screenshots |
110 | 51 |
|
111 | 52 | e2e: |
112 | 53 | needs: get-e2e-files |
113 | | -# if: needs.get-e2e-files.outputs.file_list != '[]' && inputs.COMMIT_HASH != '' |
114 | 54 | runs-on: ubuntu-latest # Or ubuntu-24.04 |
115 | 55 | strategy: |
116 | 56 | fail-fast: false # Continue running other tests even if one fails |
|
0 commit comments