From 56a68c365ded4ca74cce42ba02edb96abfbf1a42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20Ga=C5=82uszka?= Date: Sat, 30 Jul 2022 07:11:30 +0200 Subject: [PATCH] Add minimal Continous Integration (Github Actions) --- .github/workflows/ci.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..eb416c6 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,38 @@ +name: Tests Runner + +on: [push, pull_request] + +jobs: + + clojure: + strategy: + matrix: + os: [ubuntu-latest, macOS-latest, windows-latest] + + runs-on: ${{ matrix.os }} + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Prepare java + uses: actions/setup-java@v3 + with: + distribution: 'adopt' + java-version: '17' + + - name: Install clojure tools + uses: DeLaGuardo/setup-clojure@9.3 + with: + lein: 2.9.8 # Leiningen + + - name: Run tests (Ubuntu, macOS) + if: matrix.os == 'ubuntu-latest' || matrix.os == 'macOS-latest' + run: | + export DISPLAY=:99 + sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 & + lein spec + + - name: Run tests (Windows) + if: matrix.os == 'windows-latest' + run: lein spec + continue-on-error: true