Skip to content

Commit b1796e7

Browse files
committed
add ci test
1 parent 990dbc9 commit b1796e7

File tree

2 files changed

+39
-5
lines changed

2 files changed

+39
-5
lines changed

.github/workflows/native_jdbc_ci.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: CI Pipeline
2+
3+
on:
4+
pull_request:
5+
types:
6+
- synchronize
7+
- reopened
8+
- opened
9+
- ready_for_review
10+
push:
11+
branches:
12+
- main
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
18+
strategy:
19+
matrix:
20+
java-version: [8, 11]
21+
22+
steps:
23+
- name: Checkout code
24+
uses: actions/checkout@v2
25+
26+
- name: Set up JDK
27+
uses: actions/setup-java@v2
28+
with:
29+
distribution: 'temurin'
30+
java-version: ${{ matrix.java-version }}
31+
32+
- name: Find Maven dependencies
33+
run: mvn dependency:resolve
34+
35+
- name: Build with Maven
36+
run: mvn clean install

CONTRIBUTE.md

+3-5
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,7 @@ To build the source code locally, checkout and update the `master` branch:
7070

7171
Then use Maven to compile everything, build all artifacts, and install all JAR, ZIP, and TAR files into your local Maven repository:
7272

73-
mvn clean install -DskipITs -DskipTests
74-
75-
(Currently the unit tests and integration tests are not fixed, so we have to skip them)
73+
mvn clean install
7674

7775
### Running and debugging tests
7876
(Not working at this point)
@@ -92,7 +90,7 @@ To fix pull requests with code style violations, simply run the project's build
9290

9391
To run the build, navigate to the project's root directory and run:
9492

95-
mvn clean verify -DskipITs -DskipTests
93+
mvn clean verify -DskipITs
9694

9795
It might be useful to simply run a _validate_ check against the code instead of automatically applying code style changes. If you want to simply run validation, navigate to the project's root directory and run:
9896

@@ -122,7 +120,7 @@ export GPG_TTY=$(tty)
122120
Then run the following commmands:
123121

124122
```bash
125-
mvn clean javadoc:jar source:jar package gpg:sign install deploy -DskipITs -DskipTests -Drevision=2.0.2 -e
123+
mvn clean javadoc:jar source:jar package gpg:sign install deploy -DskipITs Drevision=2.0.2 -e
126124
```
127125

128126
This will geneate target/central-staging folder with required jar/asc/md5/sha1 files.

0 commit comments

Comments
 (0)