ci: run a single Xvfb instance for all tests

pull/23/head
Bogdan Popa 4 years ago
parent 7f1f62d714
commit 3dc7aa328a
No known key found for this signature in database
GPG Key ID: 4227ABAD6F9D03D5

@ -25,6 +25,8 @@ jobs:
- {racket-version: "7.1", racket-variant: "CS"} - {racket-version: "7.1", racket-variant: "CS"}
- {racket-version: "7.2", racket-variant: "CS"} - {racket-version: "7.2", racket-variant: "CS"}
- {racket-version: "7.3", racket-variant: "CS"} - {racket-version: "7.3", racket-variant: "CS"}
env:
DISPLAY: :99
steps: steps:
- name: Checkout - name: Checkout
@ -49,12 +51,14 @@ jobs:
- name: install br - name: install br
run: raco pkg install --deps search-auto https://github.com/mbutterick/beautiful-racket.git?path=beautiful-racket run: raco pkg install --deps search-auto https://github.com/mbutterick/beautiful-racket.git?path=beautiful-racket
- name: Start virtual framebuffer
run: Xvfb "$DISPLAY" -screen 0 1280x1024x24 &
- name: Run the brm tests - name: Run the brm tests
run: xvfb-run raco test -p beautiful-racket-macro run: raco test -p beautiful-racket-macro
- name: Run the lib tests - name: Run the lib tests
run: xvfb-run raco test -p beautiful-racket-lib run: raco test -p beautiful-racket-lib
- name: Run the demo tests - name: Run the demo tests
run: xvfb-run raco test -p beautiful-racket-demo run: raco test -p beautiful-racket-demo
- name: Run the br tests - name: Run the br tests
run: xvfb-run raco test -p beautiful-racket run: raco test -p beautiful-racket

Loading…
Cancel
Save