File tree 2 files changed +82
-0
lines changed
2 files changed +82
-0
lines changed Original file line number Diff line number Diff line change
1
+ ## Change Summary
2
+
3
+ <!-- Please give a short summary of the changes. -->
4
+
5
+ ## Related issue number
6
+
7
+ <!-- Are there any issues opened that will be resolved by merging this change? -->
8
+ <!-- WARNING: please use "fix #123" style references so the issue is closed when this PR is merged. -->
9
+
10
+ ## Checklist
11
+
12
+ * [ ] Commit message and PR title is comprehensive
13
+ * [ ] Keep the change as small as possible
14
+ * [ ] Unit and integration tests for the changes exist
15
+ * [ ] Tests pass on CI and coverage does not decrease
16
+ * [ ] Documentation reflects the changes where applicable
17
+ * [ ] My PR is ready to review.
Original file line number Diff line number Diff line change
1
+ name : Scala CI with ClickHouse
2
+
3
+ on : [push] # temporarily
4
+
5
+ # on:
6
+ # push:
7
+ # branches:
8
+ # - develop
9
+ # pull_request:
10
+ # branches:
11
+ # - develop
12
+ # - master
13
+
14
+ jobs :
15
+ build :
16
+ runs-on : ubuntu-latest
17
+ services :
18
+ clickhouse :
19
+ image : ${CLICKHOUSE_IMAGE:-clickhouse/clickhouse-server:latest-alpine}
20
+ env :
21
+ TZ : UTC
22
+ ports :
23
+ - 8123:8123
24
+ - 9001:9000
25
+ steps :
26
+ - name : Checkout code
27
+ uses : actions/checkout@v4
28
+
29
+ - name : Setup JDK 8
30
+ uses : actions/setup-java@v4
31
+ with :
32
+ java-version : ' 8'
33
+ distribution : ' temurin'
34
+
35
+ - name : Setup Scala and SBT
36
+ uses : olafurpg/setup-scala@v14
37
+ with :
38
+ java-version : ' 8'
39
+
40
+ - name : Cache SBT
41
+ uses : actions/cache@v4
42
+ with :
43
+ path : |
44
+ ~/.sbt
45
+ ~/.ivy2/cache
46
+ ~/.cache/coursier
47
+ key : ${{ runner.os }}-sbt-${{ hashFiles('**/*.sbt') }}
48
+
49
+ - name : Build with SBT
50
+ run : |
51
+ sbt compile
52
+
53
+ - name : Start ClickHouse
54
+ run : docker-compose -f docker-compose.test.yml up -d
55
+
56
+ - name : Run Integration Tests
57
+ run : |
58
+ sbt test
59
+
60
+ - name : Upload Coverage to Codecov
61
+ uses : codecov/codecov-action@v2
62
+ with :
63
+ token : ${{ secrets.CODECOV_TOKEN }}
64
+ files : ./path/to/coverage/reports
65
+ fail_ci_if_error : true
You can’t perform that action at this time.
0 commit comments