Skip to content

Commit 407e8b4

Browse files
committed
Add ci
1 parent a344b08 commit 407e8b4

File tree

3 files changed

+20
-4
lines changed

3 files changed

+20
-4
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
2+
name: CI
3+
on:
4+
push:
5+
branches:
6+
- "main"
7+
jobs:
8+
flakehub-publish:
9+
runs-on: "ubuntu-latest"
10+
permissions:
11+
id-token: "write"
12+
contents: "read"
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: DeterminateSystems/determinate-nix-action@v3
16+
- uses: DeterminateSystems/flakehub-cache-action@main
17+
- uses: DeterminateSystems/flake-checker-action@main

bb.edn

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{:min-bb-version "0.8.156"
2-
:deps {}
3-
:paths []
42
:tasks {:requires ([babashka.fs :as fs]
53
[clojure.string :as str]
64
[babashka.tasks :refer [shell]])
@@ -9,11 +7,13 @@
97
deps-tree (clojure "-X:deps tree :aliases '[:dev]'")
108
dev {:doc "Start a local development server" :task (clojure "-M:dev:repl/dev")}
119
fmt (shell "cljfmt -v fix src test")
10+
fmt.check (shell "cljfmt -v check src test")
1211
lint.copy-configs (let [cp (-> (shell {:out :string} "clojure -Spath -M:test:dev") :out str/trim)]
1312
(shell (str "clj-kondo --lint " cp " --dependencies --copy-configs --skip-lint")))
1413
lint.kondo (shell "clj-kondo" *command-line-args*)
1514
lint (shell (str "clj-kondo" " --fail-level error"
1615
(if (seq *command-line-args*)
1716
(str " --lint " (first *command-line-args*))
1817
" --lint src test")))
19-
jar (clojure "-T:build jar")}}
18+
jar (clojure "-T:build jar")
19+
ci {:depends [test lint fmt.check jar]}}}

bin/run-integrationtests

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env bash
2-
32
set -o errexit
43
set -o pipefail
54
DATAHIKE_STORE_BACKEND=sqlite DATAHIKE_STORE_CONFIG='{:dbtype "sqlite" :dbname "test-data/datahike.sqlite"}' clojure -M:dev:test "$@"

0 commit comments

Comments
 (0)