Skip to content

Commit f0d79d0

Browse files
committed
Update CI workflows to include integration tests with stripe-mock
- Add `stripe-mock` service to `release.yml` and `test.yml`. - Separate unit and integration tests in workflows. - Update `deps.edn` to simplify paths configuration.
1 parent 88aa050 commit f0d79d0

3 files changed

Lines changed: 21 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ jobs:
99
release:
1010
runs-on: ubuntu-latest
1111

12+
services:
13+
stripe-mock:
14+
image: stripe/stripe-mock:latest
15+
ports:
16+
- 12111:12111
17+
1218
steps:
1319
- name: Checkout
1420
uses: actions/checkout@v4
@@ -37,9 +43,12 @@ jobs:
3743
restore-keys: |
3844
${{ runner.os }}-clojure-
3945
40-
- name: Run tests
46+
- name: Run unit tests
4147
run: clojure -M:test
4248

49+
- name: Run integration tests
50+
run: clojure -M:test-integration
51+
4352
- name: Extract version from tag
4453
id: version
4554
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT

.github/workflows/test.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ jobs:
1010
test:
1111
runs-on: ubuntu-latest
1212

13+
services:
14+
stripe-mock:
15+
image: stripe/stripe-mock:latest
16+
ports:
17+
- 12111:12111
18+
1319
steps:
1420
- name: Checkout
1521
uses: actions/checkout@v4
@@ -36,5 +42,8 @@ jobs:
3642
restore-keys: |
3743
${{ runner.os }}-clojure-
3844
39-
- name: Run tests
45+
- name: Run unit tests
4046
run: clojure -M:test
47+
48+
- name: Run integration tests
49+
run: clojure -M:test-integration

deps.edn

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{:paths
2-
["src/dev"
3-
"src/main"]
2+
["src/dev" "src/main"]
43

54
:deps
65
{org.clojure/clojure {:mvn/version "1.12.4"}

0 commit comments

Comments
 (0)