Skip to content

Commit 1aafaae

Browse files
author
maxim-lixakov
committed
[DOP-16956] - add Clickhouse CI
1 parent 9559137 commit 1aafaae

File tree

2 files changed

+78
-0
lines changed

2 files changed

+78
-0
lines changed

.github/PULL_REQUEST_TEMPLATE.md

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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.

.github/workflows/clickhouse_ci.yml

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
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/clickhouse-server
20+
env:
21+
TZ: UTC
22+
ports:
23+
- 8123:8123
24+
steps:
25+
- name: Checkout code
26+
uses: actions/checkout@v4
27+
28+
- name: Setup JDK 8
29+
uses: actions/setup-java@v4
30+
with:
31+
java-version: '8'
32+
distribution: 'temurin'
33+
34+
- name: Setup Scala and SBT
35+
uses: olafurpg/setup-scala@v14
36+
with:
37+
java-version: '8'
38+
39+
- name: Cache SBT
40+
uses: actions/cache@v4
41+
with:
42+
path: |
43+
~/.sbt
44+
~/.ivy2/cache
45+
~/.cache/coursier
46+
key: ${{ runner.os }}-sbt-${{ hashFiles('**/*.sbt') }}
47+
48+
- name: Build with SBT
49+
run: |
50+
sbt compile
51+
52+
- name: Run Integration Tests
53+
run: |
54+
sbt test
55+
56+
- name: Upload Coverage to Codecov
57+
uses: codecov/codecov-action@v2
58+
with:
59+
token: ${{ secrets.CODECOV_TOKEN }}
60+
files: ./path/to/coverage/reports
61+
fail_ci_if_error: true

0 commit comments

Comments
 (0)