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