Skip to content

Commit

Permalink
ci: fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
JKatzwinkel authored Jan 4, 2025
1 parent 44cea3d commit 06ecac3
Showing 1 changed file with 72 additions and 72 deletions.
144 changes: 72 additions & 72 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ jobs:
libnss3 libatk1.0-0 libatk-bridge2.0-0 libcups2 libgtk-3-0 libgbm1
libasound2
- name: query backend endpoint URL paths list
run: curl -s localhost:8090/

- name: curl frontend from shell
run: curl -s localhost:8080/

- name: run cypress smoke test
run: >-
npx cypress run -s cypress/tests/language_switcher.spec.js
Expand All @@ -73,77 +79,71 @@ jobs:

steps:

- uses: actions/checkout@v4.2.0

- name: start && populate backend containers
run: docker compose up -d backend populate
env:
SAMPLE_URL: ${{ env.DATA_URL }}
ES_PORT: 9201

- name: start frontend container
run: docker compose up -d frontend
env:
LISTEN_PORT: 8080

- name: show tla-backend container logs
run: docker compose logs backend

- name: wait for backend to be populated with lemma data
run: bash .github/scripts/wait_for_response.sh
env:
url: http://localhost:8090/lemma/get/100690
interval: 5
timeout: 120
continue-on-error: true

- name: wait for backend to be populated with meta data
run: bash .github/scripts/wait_for_response.sh
env:
url: http://localhost:8090/version
interval: 3
timeout: 60
continue-on-error: true

- name: wait for backend to be populated with thesaurus data
run: bash .github/scripts/wait_for_response.sh
env:
url: http://localhost:8090/ths/get/7pupjz
interval: 5
timeout: 120

- name: show tla-ingest container logs
run: docker compose logs populate
if: always()

- name: query backend endpoint URL paths list
run: curl -s localhost:8090/

- name: query backend version info
run: curl -s localhost:8090/version

- name: wait for frontend to respond
run: bash .github/scripts/wait_for_response.sh
env:
url: http://localhost:8080
interval: 2
timeout: 120

- name: curl frontend from shell
run: curl -s localhost:8080/

- name: run cypress e2e tests
run: docker compose run e2e
env:
CYPRESS_BASE_URL: http://localhost:8080
CYPRESS_VIDEO: false
CYPRESS_BROWSER: firefox

- name: upload cypress screenshots
if: failure()
uses: actions/upload-artifact@v4.4.3
with:
path: src/test/e2e/cypress/screenshots
name: cypress-screenshots
- uses: actions/checkout@v4.2.0

- name: start && populate backend containers
run: docker compose up -d backend populate
env:
SAMPLE_URL: ${{ env.DATA_URL }}
ES_PORT: 9201

- name: start frontend container
run: docker compose up -d frontend
env:
LISTEN_PORT: 8080

- name: show tla-backend container logs
run: docker compose logs backend

- name: wait for backend to be populated with lemma data
run: bash .github/scripts/wait_for_response.sh
env:
url: http://localhost:8090/lemma/get/100690
interval: 5
timeout: 120
continue-on-error: true

- name: wait for backend to be populated with meta data
run: bash .github/scripts/wait_for_response.sh
env:
url: http://localhost:8090/version
interval: 3
timeout: 60
continue-on-error: true

- name: wait for backend to be populated with thesaurus data
run: bash .github/scripts/wait_for_response.sh
env:
url: http://localhost:8090/ths/get/7pupjz
interval: 5
timeout: 120

- name: show tla-ingest container logs
run: docker compose logs populate
if: always()

- name: query backend version info
run: curl -s localhost:8090/version

- name: wait for frontend to respond
run: bash .github/scripts/wait_for_response.sh
env:
url: http://localhost:8080
interval: 2
timeout: 120

- name: run cypress e2e tests
run: docker compose run e2e
env:
CYPRESS_BASE_URL: http://localhost:8080
CYPRESS_VIDEO: false
CYPRESS_BROWSER: firefox

- name: upload cypress screenshots
if: failure()
uses: actions/upload-artifact@v4.4.3
with:
path: src/test/e2e/cypress/screenshots
name: cypress-screenshots

...

0 comments on commit 06ecac3

Please sign in to comment.