diff --git a/.github/workflows/clojure.yml b/.github/workflows/clojure.yml new file mode 100644 index 00000000..3abae772 --- /dev/null +++ b/.github/workflows/clojure.yml @@ -0,0 +1,40 @@ +name: CI + +on: + push: + branches: '*' + pull_request: + branches: '*' + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/cache@v1 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-maven-${{ hashFiles('**/deps.edn') }} + restore-keys: | + ${{ runner.os }}-maven- + + - name: Install npm + uses: actions/setup-node@v2 + with: + node-version: '14' + + - name: Install ws + run: npm install ws + + - name: Install clojure tools + uses: DeLaGuardo/setup-clojure@3.2 + with: + cli: latest # Clojure CLI based on tools.deps + + - name: Install dependencies + run: clojure -P + + - name: Run tests + timeout-minutes: 5 + run: clojure -M:test -m kaocha.runner +