Skip to content

Commit 8b54cb6

Browse files
committed
Run kaocha and bb tests in github actions instead of circle
1 parent 4ad4106 commit 8b54cb6

File tree

4 files changed

+120
-101
lines changed

4 files changed

+120
-101
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: 29 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
<!-- badges -->
44
[![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)
65
<!-- /badges -->
76

87
A pure Clojure/ClojureScript URI library.
@@ -16,17 +15,25 @@ Key features
1615
<!-- opencollective -->
1716
## Lambda Island Open Source
1817

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

2128
&nbsp;
2229

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

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.
33+
Pay it forward by [becoming a backer on our OpenCollective](http://opencollective.com/lambda-island),
34+
so that we continue to enjoy a thriving Clojure ecosystem.
2835

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

3138
&nbsp;
3239

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

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

173178
- 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.
179+
- write patches that solve a problem
180+
- start by stating the problem, then supply a minimal solution `*`
181+
- by contributing you agree to license your contributions as MPL 2.0
182+
- don't break the contract with downstream consumers `**`
183+
- don't break the tests
178184

179-
Contributors SHOULD
185+
We would very much appreciate it if you also
180186

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

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.
190+
We recommend opening an issue first, before opening a pull request. That way we
191+
can make sure we agree what the problem is, and discuss how best to solve it.
192+
This is especially true if you add new dependencies, or significantly increase
193+
the API surface. In cases like these we need to decide if these changes are in
194+
line with the project's goals.
190195

191-
`*` This goes for features too, a feature needs to solve a problem. State the problem it solves, then supply a minimal solution.
196+
`*` 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.
192197

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.
198+
`**` 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.
196199
<!-- /contributing -->
197200

198201
<!-- license-mpl -->
199202
## License
200203

201-
Copyright &copy; 2017-2021 Arne Brasseur and Contributors
204+
Copyright &copy; 2017-2025 Arne Brasseur and Contributors
202205

203206
Licensed under the term of the Mozilla Public License 2.0, see LICENSE.
204-
<!-- /license-mpl -->
207+
<!-- /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)