From ffce332913685207c535fb9dc67bda9673527072 Mon Sep 17 00:00:00 2001 From: Denis Smet Date: Wed, 18 Oct 2023 02:14:46 +0400 Subject: [PATCH] Github actions --- .github/workflows/main.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..2307e22 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,34 @@ +name: Clojure CI + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +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: '8' + + - name: Install Clojure tools + uses: DeLaGuardo/setup-clojure@12.1 + with: + cli: 'latest' + bb: 'latest' + cljfmt: 'latest' + + - name: Codestyle + run: bb lint:cs:check + + - name: Unit tests + run: bb test