From b113d8360c73ea82ae3f2c23a18f1b2c15152602 Mon Sep 17 00:00:00 2001 From: James Reeves Date: Mon, 9 Dec 2024 07:33:07 +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..44bd234 --- /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 test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index a55b9c2..0000000 --- a/.travis.yml +++ /dev/null @@ -1,2 +0,0 @@ -language: clojure -lein: 2.7.1 diff --git a/README.md b/README.md index 6ed6f60..bd68e2b 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,4 @@ -# Duct module.cljs - -[![Build Status](https://travis-ci.org/duct-framework/module.cljs.svg?branch=master)](https://travis-ci.org/duct-framework/module.cljs) +# Duct ClojureScript Module [![Build Status](https://github.com/duct-framework/module.cljs/actions/workflows/test.yml/badge.svg)](https://github.com/duct-framework/module.cljs/actions/workflows/test.yml) A [Duct][] module that adds support for compiling ClojureScript for production and development.