@@ -19,34 +19,12 @@ jobs:
1919 fetch-depth : 0 # Greenframe needs the whole history
2020 - name : Download tools
2121 run : |
22- docker compose --file docker-compose.test.yml pull
2322 curl https://assets.greenframe.io/install.sh | bash
2423 cd frontend; npm install --save-dev @badeball/cypress-cucumber-preprocessor
25- - name : Install and launch backend with test data
26- run : |
27- export COUCHDB_USER="TO_BE_CHANGED"
28- export COUCHDB_PASSWORD="TO_BE_CHANGED"
29- docker compose --file docker-compose.test.yml up --detach updated_samples updated_code
30- - name : Wait for frontend build
31- uses : lewagon/wait-on-check-action@v1.3.1
24+ - name : Install and launch application
25+ uses : ./.github/actions/launch
3226 with :
33- check-regexp : .? / build
34- ref : ${{ github.event.pull_request.head.sha || github.sha }}
3527 repo-token : ${{ secrets.GITHUB_TOKEN }}
36- - name : Get frontend build
37- uses : actions/download-artifact@v4
38- with :
39- name : frontend-build
40- path : frontend/build
41- - name : Start frontend
42- run : |
43- export COUCHDB_USER="TO_BE_CHANGED"
44- export COUCHDB_PASSWORD="TO_BE_CHANGED"
45- docker compose --file docker-compose.test.yml up --detach
46- - name : Wait for frontend
47- uses : docker://benel/wait-for-response:1
48- with :
49- args : http://localhost/ 200 30000 500
5028 - name : Run tests
5129 run : |
5230 cd frontend; npx cypress run --config baseUrl=http://localhost
0 commit comments