From 373b263085bf5ddde231d6f8c1bb9774088543c8 Mon Sep 17 00:00:00 2001 From: Ambrose Bonnaire-Sergeant Date: Mon, 28 Oct 2024 11:43:19 -0500 Subject: [PATCH] Travis => Actions (#5) * build * timeout --- .github/workflows/build.yml | 34 ++++++++++++++++++++++++++++++++++ .travis.yml | 8 -------- 2 files changed, 34 insertions(+), 8 deletions(-) create mode 100644 .github/workflows/build.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..7e59708 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,34 @@ +name: Build + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + test: + runs-on: ubuntu-latest + timeout-minutes: 5 + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Cache project dependencies + uses: actions/cache@v4 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-clojure-${{ hashFiles('**/project.clj') }} + restore-keys: | + ${{ runner.os }}-clojure + - name: Prepare java + uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: 21 + - name: Install clojure tools + uses: DeLaGuardo/setup-clojure@12.5 + with: + lein: latest + - run: lein do clean, test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 2886779..0000000 --- a/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: clojure -lein: lein -script: lein do clean, test -cache: - directories: - - $HOME/.m2 -jdk: - - openjdk11