diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..2dc359d --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,30 @@ +name: CI + +on: [push, pull_request] + +jobs: + lint: + if: "!contains(github.event.head_commit.message, 'skip ci')" + strategy: + matrix: + os: [ubuntu-latest, macOS-latest] + + runs-on: ${{ matrix.os }} + + name: Run tests + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Cache lein project dependencies + id: clj-cache + uses: actions/cache@v3 + with: + path: | + ~/.m2 + ~/.lein + key: ${{ runner.os }}-clojure-${{ hashFiles('**/project.clj') }} + restore-keys: ${{ runner.os }}-clojure + + - name: Run tests + run: lein test-all diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index d53254e..0000000 --- a/.travis.yml +++ /dev/null @@ -1,11 +0,0 @@ -language: clojure -install: -- "pushd kibit" -- "lein deps" -- "popd" -script: -- "pushd kibit" -- "lein test-all" -jdk: - - openjdk8 - - openjdk11