From 3dc7aa328a07d28677972fd78c6381198885c3e2 Mon Sep 17 00:00:00 2001 From: Bogdan Popa Date: Sat, 8 May 2021 19:43:03 +0300 Subject: [PATCH 1/3] ci: run a single Xvfb instance for all tests --- .github/workflows/ci.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f5c5110..b49c05e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,6 +25,8 @@ jobs: - {racket-version: "7.1", racket-variant: "CS"} - {racket-version: "7.2", racket-variant: "CS"} - {racket-version: "7.3", racket-variant: "CS"} + env: + DISPLAY: :99 steps: - name: Checkout @@ -49,12 +51,14 @@ jobs: - name: install br 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 - run: xvfb-run raco test -p beautiful-racket-macro + run: raco test -p beautiful-racket-macro - 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 - run: xvfb-run raco test -p beautiful-racket-demo + run: raco test -p beautiful-racket-demo - name: Run the br tests - run: xvfb-run raco test -p beautiful-racket - + run: raco test -p beautiful-racket -- 2.25.1 From 20ad332af82a95825b04cbb6aaac089ed6f68417 Mon Sep 17 00:00:00 2001 From: Bogdan Popa Date: Sat, 8 May 2021 19:53:39 +0300 Subject: [PATCH 2/3] ci: add 8.0 and 8.1 --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b49c05e..b606ffe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,7 +9,7 @@ jobs: strategy: fail-fast: false matrix: - racket-version: ["6.7", "6.8", "6.9", "6.11", "6.12", "7.0", "7.1", "7.2", "7.3", "7.4", "7.5", "7.6", "7.7", "7.8", "7.9", "current"] + racket-version: ["6.7", "6.8", "6.9", "6.11", "6.12", "7.0", "7.1", "7.2", "7.3", "7.4", "7.5", "7.6", "7.7", "7.8", "7.9", "8.0", "8.1", "current"] racket-variant: ["BC", "CS"] # CS builds are only provided for versions 7.4 and up so avoid # running the job for prior versions. -- 2.25.1 From 50f1f8b9c5549441370ec2afcfbee41dc98c3616 Mon Sep 17 00:00:00 2001 From: Bogdan Popa Date: Sat, 8 May 2021 19:58:53 +0300 Subject: [PATCH 3/3] ci: skip failures on 6.7 BC, 7.{7,8,9} CS, currenct BC&CS --- .github/workflows/ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b606ffe..20abf05 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,6 +6,7 @@ jobs: run: name: "Build using Racket '${{ matrix.racket-version }}' (${{ matrix.racket-variant }})" runs-on: ubuntu-latest + continue-on-error: ${{ matrix.xfail == 'yes' }} strategy: fail-fast: false matrix: @@ -25,6 +26,13 @@ jobs: - {racket-version: "7.1", racket-variant: "CS"} - {racket-version: "7.2", racket-variant: "CS"} - {racket-version: "7.3", racket-variant: "CS"} + include: + - {racket-version: "6.7", racket-variant: "BC", xfail: "yes"} + - {racket-version: "7.7", racket-variant: "CS", xfail: "yes"} + - {racket-version: "7.8", racket-variant: "CS", xfail: "yes"} + - {racket-version: "7.9", racket-variant: "CS", xfail: "yes"} + - {racket-version: "current", racket-variant: "BC", xfail: "yes"} + - {racket-version: "current", racket-variant: "CS", xfail: "yes"} env: DISPLAY: :99 -- 2.25.1