From 9aab51579b79b231bd7da1d81caea0df1711cfbb Mon Sep 17 00:00:00 2001 From: James Reeves Date: Tue, 5 Nov 2024 17:01:15 +0000 Subject: [PATCH] Replace Travis CI with GitHub Actions --- .github/workflows/test.yml | 29 +++++++++++++++++++++++++++++ .travis.yml | 2 -- README.md | 4 +--- 3 files changed, 30 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/test.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..a7c7e70 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,29 @@ +name: Tests +on: [push, pull_request] +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Prepare java + uses: actions/setup-java@v3 + with: + distribution: 'zulu' + java-version: '11' + + - name: Install clojure tools + uses: DeLaGuardo/setup-clojure@10.1 + with: + lein: 2.9.10 + + - name: Cache clojure dependencies + uses: actions/cache@v3 + with: + path: ~/.m2/repository + key: cljdeps-${{ hashFiles('project.clj') }} + restore-keys: cljdeps- + + - name: Run tests + run: lein sub test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 1ceecc8..0000000 --- a/.travis.yml +++ /dev/null @@ -1,2 +0,0 @@ -language: clojure -script: lein sub test diff --git a/README.md b/README.md index 840b6d9..67c4846 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,4 @@ -# Ragtime - -[![Build Status](https://travis-ci.org/weavejester/ragtime.svg?branch=master)](https://travis-ci.org/weavejester/ragtime) +# Ragtime [![Build Status](https://github.com/weavejester/ragtime/actions/workflows/test.yml/badge.svg)](https://github.com/weavejester/ragtime/actions/workflows/test.yml) Ragtime is a Clojure library for migrating structured data in a way that's database independent. It defines a common interface for