Skip to content

Commit

Permalink
Pin Cypress and make CI steps more explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
axelboc authored and marcus-oscarsson committed Sep 4, 2023
1 parent e08ef49 commit aca3b84
Show file tree
Hide file tree
Showing 3 changed files with 196 additions and 332 deletions.
33 changes: 24 additions & 9 deletions .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,31 @@ jobs:
conda install -c conda-forge mamba
mamba env update --file conda-environment.yml --name base
pip install -e .
- name: Cache UI dependencies
uses: actions/cache@v2
with:
path: |
~/.cache/Cypress
ui/node_modules
key: cache-${{ runner.os }}-${{ hashFiles('ui/package-lock.json') }}

- name: Install UI dependencies
run: npm install --prefix ./ui --legacy-peer-deps

- name: Build UI
run: |
npm install --prefix ./ui
npm run --prefix ./ui build
run: npm run --prefix ./ui build
env:
DISABLE_ESLINT_PLUGIN: true
- name: Run mxcube backend
run: |
mxcubeweb-server -r ./test/HardwareObjectsMockup.xml/ --static-folder $(pwd)/ui/build/ -L debug &
- name: Cypress run
uses: cypress-io/github-action@v5

- name: Run MXCuBE backend
run: mxcubeweb-server -r ./test/HardwareObjectsMockup.xml/ --static-folder $(pwd)/ui/build/ -L debug &

- name: Run Cypress
run: npm run --prefix ./ui e2e

- uses: actions/upload-artifact@v3
if: failure()
with:
working-directory: ./ui
name: cypress
path: cypress/debug
Loading

0 comments on commit aca3b84

Please sign in to comment.