From 38654104c23167d5d0dc86255446a1edf9019af4 Mon Sep 17 00:00:00 2001 From: Joel Kaasinen Date: Fri, 15 Mar 2024 10:31:13 +0200 Subject: [PATCH 1/2] travis is no more --- .travis.yml | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 979d5a4..0000000 --- a/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -sudo: false -language: clojure -lein: 2.8.1 -install: - - ./scripts/lein-modules install -script: - - lein do clean, all test #, all check -jdk: - - openjdk8 - - openjdk11 -cache: - directories: - - $HOME/.m2 From a5162301b2788a7d0a947226197fc4c86fc8de22 Mon Sep 17 00:00:00 2001 From: Joel Kaasinen Date: Fri, 15 Mar 2024 10:33:24 +0200 Subject: [PATCH 2/2] ci: github actions test workflow --- .github/workflows/test.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..e3bd42d --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,31 @@ +name: Run tests + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build-clj: + strategy: + matrix: + jdk: [8, 11, 17, 21] + + name: Clojure (Java ${{ matrix.jdk }}) + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Setup Java ${{ matrix.jdk }} + uses: actions/setup-java@v3.12.0 + with: + distribution: zulu + java-version: ${{ matrix.jdk }} + - name: Setup Clojure + uses: DeLaGuardo/setup-clojure@master + with: + lein: 2.9.4 + - name: Run tests + run: lein test