Skip to content

Commit

Permalink
Create GitHub CI (#19)
Browse files Browse the repository at this point in the history
* Create ci.yml

* Add matrix build for all os

* Try to install lein

* Update ci.yml

* Update ci.yml
  • Loading branch information
iTitus authored Nov 21, 2024
1 parent 25a1a90 commit 55cfaef
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Clojure CI

on:
workflow_dispatch:
push:
pull_request:
branches: [ master ]

jobs:
build:
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
java-version: [ 21 ]
distribution: [ temurin ]

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4

- uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java-version }}
distribution: ${{ matrix.distribution }}

- name: Install Leiningen on Windows
if: runner.os == 'Windows'
run: |
choco install lein
- name: Install Leiningen on Mac
if: runner.os == 'macOS'
run: |
brew update
brew install leiningen
- name: Install dependencies
run: lein deps

- name: Run tests
run: lein test

0 comments on commit 55cfaef

Please sign in to comment.