@@ -191,49 +191,49 @@ jobs:
191191 name : windows
192192 path : KappappWin.zip
193193
194- webapp-playwright-test :
195- needs : [cli-and-doc, webapp-ubuntu]
194+ # webapp-playwright-test:
195+ # needs: [cli-and-doc, webapp-ubuntu]
196196 # run only on master OR when the PR is _not_ a draft
197197 # TODO: improve this?
198- if : |
199- github.ref == 'refs/heads/master' ||
200- github.event.pull_request.draft == false
201- timeout-minutes : 75
202- runs-on : ubuntu-latest
203- steps :
204- - uses : actions/checkout@v4
205- - uses : actions/setup-node@v4
206- with :
207- node-version : lts/*
208- - name : Install dependencies
209- run : |
210- npm ci
211- sudo apt-get update
212- sudo apt-get install lighttpd
213- sudo apt-get install xvfb x11-xkb-utils xfonts-100dpi xfonts-75dpi xfonts-scalable xfonts-cyrillic x11-apps
214- sudo npm install -D @playwright/test@latest
215- npm install --save-dev @types/node @types/yauzl
216- - name : Install Playwright Browsers
217- run : npx playwright install --with-deps
218- - name : Download online-ui
219- uses : actions/download-artifact@v4
220- with :
221- name : online-ui
222- - name : Setup webapp server
223- run : >-
224- echo '
225- include_shell "/usr/share/lighttpd/create-mime.conf.pl"
226- server.document-root = "/home/runner/work/KappaTools/KappaTools/site"
227- server.port = 12345
228- server.username = "root"
229- server.groupname = "root"
230- ' > lighttpd.conf
231- lighttpd -f lighttpd.conf -D &
232- sleep 10 && curl -i http://127.0.0.1:12345/index.html # test
233- - name : Download electron app
234- uses : actions/download-artifact@v4
235- with :
236- name : linux
198+ # if: |
199+ # github.ref == 'refs/heads/master' ||
200+ # github.event.pull_request.draft == false
201+ # timeout-minutes: 75
202+ # runs-on: ubuntu-latest
203+ # steps:
204+ # - uses: actions/checkout@v4
205+ # - uses: actions/setup-node@v4
206+ # with:
207+ # node-version: lts/*
208+ # - name: Install dependencies
209+ # run: |
210+ # npm ci
211+ # sudo apt-get update
212+ # sudo apt-get install lighttpd
213+ # sudo apt-get install xvfb x11-xkb-utils xfonts-100dpi xfonts-75dpi xfonts-scalable xfonts-cyrillic x11-apps
214+ # sudo npm install -D @playwright/test@latest
215+ # npm install --save-dev @types/node @types/yauzl
216+ # - name: Install Playwright Browsers
217+ # run: npx playwright install --with-deps
218+ # - name: Download online-ui
219+ # uses: actions/download-artifact@v4
220+ # with:
221+ # name: online-ui
222+ # - name: Setup webapp server
223+ # run: >-
224+ # echo '
225+ # include_shell "/usr/share/lighttpd/create-mime.conf.pl"
226+ # server.document-root = "/home/runner/work/KappaTools/KappaTools/site"
227+ # server.port = 12345
228+ # server.username = "root"
229+ # server.groupname = "root"
230+ # ' > lighttpd.conf
231+ # lighttpd -f lighttpd.conf -D &
232+ # sleep 10 && curl -i http://127.0.0.1:12345/index.html # test
233+ # - name: Download electron app
234+ # uses: actions/download-artifact@v4
235+ # with:
236+ # name: linux
237237 # - name: Setup electron app
238238 # run: |
239239 # tar xzf Kappapp.tar.gz
@@ -244,46 +244,46 @@ jobs:
244244 # # ls -R /home/runner/work/
245245 # Xvfb :99 -ac -screen 0 1920x1080x24 +extension GLX +render > xvfb_log.txt 2>&1 &
246246 # sleep 3
247- - name : Run Playwright tests
248- run : |
249- # export DISPLAY=:99 # needed for electron
250- DEBUG=pw:browser* npx playwright test --retries=2 --trace retain-on-first-failure
251- - uses : actions/upload-artifact@v4
252- if : ${{ !cancelled() }}
253- with :
254- name : playwright-report
255- path : playwright-report/
256- retention-days : 30
247+ # - name: Run Playwright tests
248+ # run: |
249+ # # export DISPLAY=:99 # needed for electron
250+ # DEBUG=pw:browser* npx playwright test --retries=2 --trace retain-on-first-failure
251+ # - uses: actions/upload-artifact@v4
252+ # if: ${{ !cancelled() }}
253+ # with:
254+ # name: playwright-report
255+ # path: playwright-report/
256+ # retention-days: 30
257257 # - uses: actions/upload-artifact@v4
258258 # if: ${{ !cancelled() }}
259259 # with:
260260 # name: xvfb_log
261261 # path: xvfb_log.txt
262262 # retention-days: 30
263263
264- deploy :
265- needs : [cli-and-doc, webapp-ubuntu, webapp-macos, webapp-windows, webapp-playwright-test]
266- if : github.ref == 'refs/heads/master'
267- runs-on : ubuntu-22.04
268- strategy :
269- matrix :
270- deploy-name : [doc, online-ui, linux, macos, windows]
271- steps :
272- - name : Checkout
273- uses : actions/checkout@v4
274- - name : Download artifact
275- uses : actions/download-artifact@v4
276- with :
277- name : ${{matrix.deploy-name}}
278- - name : Install SSH Key
279- uses : shimataro/ssh-key-action@v2
280- with :
281- key : ${{ secrets.DEPLOY_KEY }}
282- known_hosts : api.kappalanguage.org ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBJooIEJd6sgRL5JUKGqh9zB3Xla1MchqR8IWl7Nh9ahm9Ji6IwV9QSKG9YQEIHdJWxBk4UzbfRWGkDK9q1GggyM=
283- - name : Run deploy script
284- run : dev/deploy-to-website.sh ${{matrix.deploy-name}}
264+ # deploy:
265+ # needs: [cli-and-doc, webapp-ubuntu, webapp-macos, webapp-windows, webapp-playwright-test]
266+ # if: github.ref == 'refs/heads/master'
267+ # runs-on: ubuntu-22.04
268+ # strategy:
269+ # matrix:
270+ # deploy-name: [doc, online-ui, linux, macos, windows]
271+ # steps:
272+ # - name: Checkout
273+ # uses: actions/checkout@v4
274+ # - name: Download artifact
275+ # uses: actions/download-artifact@v4
276+ # with:
277+ # name: ${{matrix.deploy-name}}
278+ # - name: Install SSH Key
279+ # uses: shimataro/ssh-key-action@v2
280+ # with:
281+ # key: ${{ secrets.DEPLOY_KEY }}
282+ # known_hosts: api.kappalanguage.org ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBJooIEJd6sgRL5JUKGqh9zB3Xla1MchqR8IWl7Nh9ahm9Ji6IwV9QSKG9YQEIHdJWxBk4UzbfRWGkDK9q1GggyM=
283+ # - name: Run deploy script
284+ # run: dev/deploy-to-website.sh ${{matrix.deploy-name}}
285285
286- # TODO: see if add cache
286+ # TODO: see if add cache
287287# # from https://github.com/hazelgrove/hazel/blob/868f673119827a35ec67fad5e7e0d5135ce91d4c/.github/workflows/deploy_branches.yml#L19-L29
288288# - name: Retrieve the switch environment if cached
289289# id: opam-cache-switch
0 commit comments