|
64 | 64 | diff ../hello-world/.eslintignore .eslintignore
|
65 | 65 | diff ../hello-world/.eslintrc.js .eslintrc.js
|
66 | 66 | diff ../hello-world/.gitignore .gitignore
|
| 67 | + diff ../hello-world/ui-tests/playwright.config.ts ./ui-tests/playwright.config.ts |
| 68 | + diff ../hello-world/ui-tests/README.md ./ui-tests/README.md |
67 | 69 | shell: bash
|
68 | 70 | - name: Install node
|
69 | 71 | if: steps.filter.outputs.extension == 'true'
|
@@ -103,13 +105,34 @@ jobs:
|
103 | 105 | - name: Build and check by extension
|
104 | 106 | if: steps.filter.outputs.extension == 'true'
|
105 | 107 | run: |
|
106 |
| - pip install . -vvv |
| 108 | + pip install . -v |
107 | 109 | jupyter labextension list 2>&1 | tee labextension.list
|
108 | 110 | cat labextension.list | grep -ie "@jupyterlab-examples/*.*OK"
|
109 | 111 | python -m jupyterlab.browser_check
|
110 | 112 | pip uninstall -y $(python setup.py --name)
|
111 | 113 | shell: bash
|
112 | 114 |
|
| 115 | + - name: Integration tests |
| 116 | + if: steps.filter.outputs.extension == 'true' && startsWith(runner.os, 'Linux') |
| 117 | + run: | |
| 118 | + docker-compose -f ../end-to-end-tests/docker-compose.yml --env-file ./ui-tests/.env down || true |
| 119 | + docker-compose -f ../end-to-end-tests/docker-compose.yml --env-file ./ui-tests/.env pull -q || true |
| 120 | + docker-compose -f ../end-to-end-tests/docker-compose.yml --env-file ./ui-tests/.env build |
| 121 | + docker-compose -f ../end-to-end-tests/docker-compose.yml --env-file ./ui-tests/.env run --rm e2e |
| 122 | + - name: Upload UI Test artifacts |
| 123 | + if: steps.filter.outputs.extension == 'true' && startsWith(runner.os, 'Linux') && always() |
| 124 | + uses: actions/upload-artifact@v2 |
| 125 | + with: |
| 126 | + name: ui-test-output |
| 127 | + path: | |
| 128 | + ${{ matrix.example }}/ui-tests/test-results |
| 129 | + - name: Stop containers |
| 130 | + if: steps.filter.outputs.extension == 'true' && startsWith(runner.os, 'Linux') && always() |
| 131 | + run: | |
| 132 | + # Print jupyterlab logs before removing the containers using the container name set in docker-compose file |
| 133 | + docker logs jupyterlab |
| 134 | + docker-compose -f ../end-to-end-tests/docker-compose.yml --env-file ./ui-tests/.env down |
| 135 | +
|
113 | 136 | build_serverextension:
|
114 | 137 | runs-on: ${{ matrix.os }}
|
115 | 138 | strategy:
|
@@ -147,6 +170,8 @@ jobs:
|
147 | 170 | diff hello-world/tsconfig.json server-extension/tsconfig.json
|
148 | 171 | diff hello-world/.eslintignore server-extension/.eslintignore
|
149 | 172 | diff hello-world/.eslintrc.js server-extension/.eslintrc.js
|
| 173 | + diff hello-world/ui-tests/playwright.config.ts server-extension/ui-tests/playwright.config.ts |
| 174 | + diff hello-world/ui-tests/README.md server-extension/ui-tests/README.md |
150 | 175 | shell: bash
|
151 | 176 | - name: Install Python
|
152 | 177 | if: steps.filter.outputs.extension == 'true'
|
@@ -218,6 +243,29 @@ jobs:
|
218 | 243 | cat labextension.list | grep -ie "@jupyterlab-examples/server-extension.*OK"
|
219 | 244 | python -m jupyterlab.browser_check
|
220 | 245 |
|
| 246 | + - name: Integration tests |
| 247 | + if: steps.filter.outputs.extension == 'true' && startsWith(runner.os, 'Linux') |
| 248 | + run: | |
| 249 | + cd server-extension |
| 250 | + docker-compose -f ../end-to-end-tests/docker-compose.yml --env-file ./ui-tests/.env down || true |
| 251 | + docker-compose -f ../end-to-end-tests/docker-compose.yml --env-file ./ui-tests/.env pull -q || true |
| 252 | + docker-compose -f ../end-to-end-tests/docker-compose.yml --env-file ./ui-tests/.env build |
| 253 | + docker-compose -f ../end-to-end-tests/docker-compose.yml --env-file ./ui-tests/.env run --rm e2e |
| 254 | + - name: Upload UI Test artifacts |
| 255 | + if: steps.filter.outputs.extension == 'true' && startsWith(runner.os, 'Linux') && always() |
| 256 | + uses: actions/upload-artifact@v2 |
| 257 | + with: |
| 258 | + name: ui-test-output |
| 259 | + path: | |
| 260 | + server-extension/ui-tests/test-results |
| 261 | + - name: Stop containers |
| 262 | + if: steps.filter.outputs.extension == 'true' && startsWith(runner.os, 'Linux') && always() |
| 263 | + run: | |
| 264 | + cd server-extension |
| 265 | + # Print jupyterlab logs before removing the containers using the container name set in docker-compose file |
| 266 | + docker logs jupyterlab |
| 267 | + docker-compose -f ../end-to-end-tests/docker-compose.yml --env-file ./ui-tests/.env down |
| 268 | +
|
221 | 269 | build_all:
|
222 | 270 | runs-on: ${{ matrix.os }}
|
223 | 271 | strategy:
|
|
0 commit comments