Skip to content

Commit

Permalink
Merge pull request #261 from NoahTheDuke/nb/github-actions
Browse files Browse the repository at this point in the history
Switch to Github Actions
  • Loading branch information
NoahTheDuke authored May 15, 2024
2 parents abc016b + 9ff2a1a commit 76ab452
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 11 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
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

# exclusions: babashka, clj-kondo and cljstyle
- name: Prepare java
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '8'

- name: Install clojure tools
uses: DeLaGuardo/[email protected]
with:
lein: 2.9.1

- 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
11 changes: 0 additions & 11 deletions .travis.yml

This file was deleted.

0 comments on commit 76ab452

Please sign in to comment.