From ca21f8dd2ea6906ae3430774e9149ccbebe849a2 Mon Sep 17 00:00:00 2001 From: Ivan Willig Date: Tue, 2 Dec 2025 17:51:35 -0500 Subject: [PATCH] Add github/workflows/ci.yml yaml file to the project --- .github/workflows/ci.yml | 60 ++++++++++++++++++++++++++++++++++++++++ bb.edn | 3 +- 2 files changed, 62 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..3f1bc9a --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,60 @@ +name: CI + +on: + push: + branches: [ main, master, develop ] + pull_request: + branches: [ main, master, develop ] + workflow_dispatch: + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Prepare java + uses: actions/setup-java@v5 + with: + distribution: 'graalvm' + java-version: '25' + + - name: Setup Clojure + uses: DeLaGuardo/setup-clojure@12.5 + with: + cli: 'latest' + bb: 'latest' + + - name: Cache Clojure dependencies + uses: actions/cache@v4 + with: + path: | + ~/.m2/repository + .cpcache + key: ${{ runner.os }}-clojure-deps-${{ hashFiles('**/deps.edn', '**/bb.edn') }} + restore-keys: | + ${{ runner.os }}-clojure-deps- + + - name: Verify GraalVM installation + run: | + echo "Java version:" + java -version + echo "Native Image version:" + native-image --version + + - name: Run CI tasks + run: bb ci + env: + CI: true + + - name: Upload test results + if: always() + uses: actions/upload-artifact@v4 + with: + name: test-results + path: | + junit.xml + target/coverage/ + if-no-files-found: ignore diff --git a/bb.edn b/bb.edn index 24be1bf..e899795 100644 --- a/bb.edn +++ b/bb.edn @@ -401,7 +401,8 @@ (run 'clean) (run 'fmt-check) (run 'lint) - (run 'typos) + ;; Disable typos in the CI for now + ;; (run 'typos) (run 'test) (success-msg "CI pipeline completed successfully"))}