Skip to content

Commit a97d18a

Browse files
committed
Run kaocha and bb tests in github actions instead of circle
remove circle ci in README add back bb badge
1 parent 4ad4106 commit a97d18a

File tree

4 files changed

+122
-102
lines changed

4 files changed

+122
-102
lines changed

.circleci/config.yml

Lines changed: 0 additions & 74 deletions
This file was deleted.

.github/workflows/main.yml

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
name: Continuous Delivery
2+
3+
on: push
4+
5+
jobs:
6+
Kaocha:
7+
runs-on: ${{matrix.sys.os}}
8+
9+
strategy:
10+
matrix:
11+
sys:
12+
# - { os: macos-latest, shell: bash }
13+
- { os: ubuntu-latest, shell: bash }
14+
# - { os: windows-latest, shell: powershell }
15+
16+
defaults:
17+
run:
18+
shell: ${{matrix.sys.shell}}
19+
20+
steps:
21+
- uses: actions/checkout@v2
22+
23+
- name: 🔧 Install java
24+
uses: actions/setup-java@v1
25+
with:
26+
java-version: '25'
27+
28+
- name: 🔧 Install clojure
29+
uses: DeLaGuardo/setup-clojure@master
30+
with:
31+
cli: '1.12.3.1577'
32+
33+
- name: 🗝 maven cache
34+
uses: actions/cache@v4
35+
with:
36+
path: |
37+
~/.m2
38+
~/.gitlibs
39+
key: ${{ runner.os }}-maven-${{ github.sha }}
40+
restore-keys: |
41+
${{ runner.os }}-maven-
42+
43+
- name: 🧪 Run tests
44+
run: bin/kaocha
45+
46+
Babashka:
47+
runs-on: ${{matrix.sys.os}}
48+
49+
strategy:
50+
matrix:
51+
sys:
52+
# - { os: macos-latest, shell: bash }
53+
- { os: ubuntu-latest, shell: bash }
54+
# - { os: windows-latest, shell: powershell }
55+
56+
defaults:
57+
run:
58+
shell: ${{matrix.sys.shell}}
59+
60+
steps:
61+
- uses: actions/checkout@v2
62+
63+
- name: 🔧 Install java
64+
uses: actions/setup-java@v1
65+
with:
66+
java-version: '25'
67+
68+
- name: 🔧 Install clojure
69+
uses: DeLaGuardo/setup-clojure@master
70+
with:
71+
cli: '1.12.3.1577'
72+
73+
- name: 🔧 Install babashka
74+
run: |
75+
curl -sLO https://raw.githubusercontent.com/babashka/babashka/master/install
76+
chmod +x install
77+
./install --version 1.0.168
78+
79+
- name: 🗝 maven cache
80+
uses: actions/cache@v4
81+
with:
82+
path: |
83+
~/.m2
84+
~/.gitlibs
85+
key: ${{ runner.os }}-maven-${{ github.sha }}
86+
restore-keys: |
87+
${{ runner.os }}-maven-
88+
89+
- name: 🧪 Run tests
90+
run: bb test:bb

README.md

Lines changed: 31 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# lambdaisland/uri
22

33
<!-- badges -->
4-
[![CircleCI](https://circleci.com/gh/lambdaisland/uri.svg?style=svg)](https://circleci.com/gh/lambdaisland/uri) [![cljdoc badge](https://cljdoc.org/badge/lambdaisland/uri)](https://cljdoc.org/d/lambdaisland/uri) [![Clojars Project](https://img.shields.io/clojars/v/lambdaisland/uri.svg)](https://clojars.org/lambdaisland/uri)
5-
[![bb compatible](https://raw.githubusercontent.com/babashka/babashka/master/logo/badge.svg)](https://babashka.org)
4+
[![GitHub Actions](https://github.com/lambdaisland/uri/actions/workflows/main.yml/badge.svg)](https://github.com/lambdaisland/uri/actions/workflows/main.yml) [![cljdoc badge](https://cljdoc.org/badge/lambdaisland/uri)](https://cljdoc.org/d/lambdaisland/uri) [![Clojars Project](https://img.shields.io/clojars/v/lambdaisland/uri.svg)](https://clojars.org/lambdaisland/uri)
5+
[![bb compatible](https://raw.githubusercontent.com/babashka/babashka/master/logo/badge.svg)](https://book.babashka.org#badges)
66
<!-- /badges -->
77

88
A pure Clojure/ClojureScript URI library.
@@ -16,17 +16,25 @@ Key features
1616
<!-- opencollective -->
1717
## Lambda Island Open Source
1818

19+
Thank you! uri is made possible thanks to our generous backers. [Become a
20+
backer on OpenCollective](https://opencollective.com/lambda-island) so that we
21+
can continue to make uri better.
22+
23+
<a href="https://opencollective.com/lambda-island">
24+
<img src="https://opencollective.com/lambda-island/organizations.svg?avatarHeight=46&width=800&button=false">
25+
<img src="https://opencollective.com/lambda-island/individuals.svg?avatarHeight=46&width=800&button=false">
26+
</a>
1927
<img align="left" src="https://github.com/lambdaisland/open-source/raw/master/artwork/lighthouse_readme.png">
2028

2129
&nbsp;
2230

2331
uri is part of a growing collection of quality Clojure libraries created and maintained
2432
by the fine folks at [Gaiwan](https://gaiwan.co).
2533

26-
Pay it forward by [becoming a backer on our Open Collective](http://opencollective.com/lambda-island),
27-
so that we may continue to enjoy a thriving Clojure ecosystem.
34+
Pay it forward by [becoming a backer on our OpenCollective](http://opencollective.com/lambda-island),
35+
so that we continue to enjoy a thriving Clojure ecosystem.
2836

29-
You can find an overview of our projects at [lambdaisland/open-source](https://github.com/lambdaisland/open-source).
37+
You can find an overview of all our different projects at [lambdaisland/open-source](https://github.com/lambdaisland/open-source).
3038

3139
&nbsp;
3240

@@ -166,39 +174,35 @@ It has been tested against [this list of test cases compiled by the W3C](https:/
166174
<!-- contributing -->
167175
## Contributing
168176

169-
Everyone has a right to submit patches to uri, and thus become a contributor.
170-
171-
Contributors MUST
177+
We warmly welcome patches to uri. Please keep in mind the following:
172178

173179
- adhere to the [LambdaIsland Clojure Style Guide](https://nextjournal.com/lambdaisland/clojure-style-guide)
174-
- write patches that solve a problem. Start by stating the problem, then supply a minimal solution. `*`
175-
- agree to license their contributions as MPL 2.0.
176-
- not break the contract with downstream consumers. `**`
177-
- not break the tests.
180+
- write patches that solve a problem
181+
- start by stating the problem, then supply a minimal solution `*`
182+
- by contributing you agree to license your contributions as MPL 2.0
183+
- don't break the contract with downstream consumers `**`
184+
- don't break the tests
178185

179-
Contributors SHOULD
186+
We would very much appreciate it if you also
180187

181-
- update the CHANGELOG and README.
182-
- add tests for new functionality.
188+
- update the CHANGELOG and README
189+
- add tests for new functionality
183190

184-
If you submit a pull request that adheres to these rules, then it will almost
185-
certainly be merged immediately. However some things may require more
186-
consideration. If you add new dependencies, or significantly increase the API
187-
surface, then we need to decide if these changes are in line with the project's
188-
goals. In this case you can start by [writing a pitch](https://nextjournal.com/lambdaisland/pitch-template),
189-
and collecting feedback on it.
191+
We recommend opening an issue first, before opening a pull request. That way we
192+
can make sure we agree what the problem is, and discuss how best to solve it.
193+
This is especially true if you add new dependencies, or significantly increase
194+
the API surface. In cases like these we need to decide if these changes are in
195+
line with the project's goals.
190196

191-
`*` This goes for features too, a feature needs to solve a problem. State the problem it solves, then supply a minimal solution.
197+
`*` This goes for features too, a feature needs to solve a problem. State the problem it solves first, only then move on to solving it.
192198

193-
`**` As long as this project has not seen a public release (i.e. is not on Clojars)
194-
we may still consider making breaking changes, if there is consensus that the
195-
changes are justified.
199+
`**` Projects that have a version that starts with `0.` may still see breaking changes, although we also consider the level of community adoption. The more widespread a project is, the less likely we're willing to introduce breakage. See [LambdaIsland-flavored Versioning](https://github.com/lambdaisland/open-source#lambdaisland-flavored-versioning) for more info.
196200
<!-- /contributing -->
197201

198202
<!-- license-mpl -->
199203
## License
200204

201-
Copyright &copy; 2017-2021 Arne Brasseur and Contributors
205+
Copyright &copy; 2017-2025 Arne Brasseur and Contributors
202206

203207
Licensed under the term of the Mozilla Public License 2.0, see LICENSE.
204-
<!-- /license-mpl -->
208+
<!-- /license-mpl -->

bb.edn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{:deps
22
{lambdaisland/open-source {:git/url "https://github.com/lambdaisland/open-source"
3-
:git/sha "7ce125cbd14888590742da7ab3b6be9bba46fc7a"}
3+
:git/sha "94295666e8026fb8c58e93f822914810812e77d4"}
44
current/project {:local/root "."}}
55

66
:tasks

0 commit comments

Comments
 (0)